Commit 3a0ad5c8 authored by gpoirier's avatar gpoirier

Fix (with av_uninit()) false positive warning about uninitialized variable:...

Fix (with av_uninit()) false positive warning about uninitialized variable: offset is initialized and used if code == 1.
Patch by Patrik Kullman %patrik A yes P nu%


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17128 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cf0eb02a
...@@ -94,7 +94,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data, ...@@ -94,7 +94,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data,
while (dst != frame_end) { while (dst != frame_end) {
static const uint8_t lentab[4]={0,2,0,1}; static const uint8_t lentab[4]={0,2,0,1};
unsigned int byte = *buf++, offset; unsigned int byte = *buf++, av_uninit(offset);
unsigned int code = byte >> 6; unsigned int code = byte >> 6;
unsigned int length = byte & ~0xC0; unsigned int length = byte & ~0xC0;
......
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