[FFmpeg-cvslog] r17128 - trunk/libavcodec/bfi.c

gpoirier subversion
Tue Feb 10 11:35:05 CET 2009


Author: gpoirier
Date: Tue Feb 10 11:35:05 2009
New Revision: 17128

Log:
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%

Modified:
   trunk/libavcodec/bfi.c

Modified: trunk/libavcodec/bfi.c
==============================================================================
--- trunk/libavcodec/bfi.c	Tue Feb 10 10:12:52 2009	(r17127)
+++ trunk/libavcodec/bfi.c	Tue Feb 10 11:35:05 2009	(r17128)
@@ -94,7 +94,7 @@ static int bfi_decode_frame(AVCodecConte
 
     while (dst != frame_end) {
         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 length = byte & ~0xC0;
 




More information about the ffmpeg-cvslog mailing list