mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ce4ae18405
commit
aff352be63
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user