1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

bmp: Fix warning X may be used uninitialized in this function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-02-23 14:03:18 +01:00
parent 23c9180c00
commit 5270cb39ba

View File

@ -50,7 +50,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
BiCompression comp; BiCompression comp;
unsigned int ihsize; unsigned int ihsize;
int i, j, n, linesize, ret; int i, j, n, linesize, ret;
uint32_t rgb[3]; uint32_t rgb[3] = {0};
uint32_t alpha = 0; uint32_t alpha = 0;
uint8_t *ptr; uint8_t *ptr;
int dsize; int dsize;