diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-04 14:30:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-04 14:30:40 +0100 |
commit | 63c61f0be03624fbd9e352d8393122beb3ddcc1a (patch) | |
tree | 0f4d00e37c3b13961cae8ef12d03f1c6153e7350 | |
parent | c67ddb56da551b5afe536cf0bdc6487ccc80b8ce (diff) | |
download | ffmpeg-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 05307c1342..ef763fa675 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; |