summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-04 14:30:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-04 14:30:40 +0100
commit63c61f0be03624fbd9e352d8393122beb3ddcc1a (patch)
tree0f4d00e37c3b13961cae8ef12d03f1c6153e7350
parentc67ddb56da551b5afe536cf0bdc6487ccc80b8ce (diff)
downloadffmpeg-streaming-63c61f0be03624fbd9e352d8393122beb3ddcc1a.zip
ffmpeg-streaming-63c61f0be03624fbd9e352d8393122beb3ddcc1a.tar.gz
vc1dec: Fix 2 "warning: may be used uninitialized in this function"
Initialize pointers to NULL for safety Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vc1dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 05307c1..ef763fa 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -2728,7 +2728,7 @@ static int vc1_decode_i_block_adv(VC1Context *v, int16_t block[64], int n,
MpegEncContext *s = &v->s;
int dc_pred_dir = 0; /* Direction of the DC prediction used */
int i;
- int16_t *dc_val;
+ int16_t *dc_val = NULL;
int16_t *ac_val, *ac_val2;
int dcdiff;
int a_avail = v->a_avail, c_avail = v->c_avail;
@@ -2940,7 +2940,7 @@ static int vc1_decode_intra_block(VC1Context *v, int16_t block[64], int n,
MpegEncContext *s = &v->s;
int dc_pred_dir = 0; /* Direction of the DC prediction used */
int i;
- int16_t *dc_val;
+ int16_t *dc_val = NULL;
int16_t *ac_val, *ac_val2;
int dcdiff;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
OpenPOWER on IntegriCloud