Browse code

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

Patrik Kullman authored on 2009/02/10 19:35:05
Showing 1 changed files
... ...
@@ -94,7 +94,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data,
94 94
 
95 95
     while (dst != frame_end) {
96 96
         static const uint8_t lentab[4]={0,2,0,1};
97
-        unsigned int byte = *buf++, offset;
97
+        unsigned int byte = *buf++, av_uninit(offset);
98 98
         unsigned int code = byte >> 6;
99 99
         unsigned int length = byte & ~0xC0;
100 100