mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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% Originally committed as revision 17128 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0dd8966638
commit
79ff462e73
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user