Commit aff352be authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: zero gb to silence warning about it being possibly uninitialized

The code is not speed relevant, also its more robust if the pointers are NULL instead of random.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ce4ae184
......@@ -1153,7 +1153,7 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
uint8_t *data[MAX_COMPONENTS];
const uint8_t *reference_data[MAX_COMPONENTS];
int linesize[MAX_COMPONENTS];
GetBitContext mb_bitmask_gb;
GetBitContext mb_bitmask_gb = {0}; // initialize to silence gcc warning
int bytes_per_pixel = 1 + (s->bits > 8);
if (mb_bitmask) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment