diff bfi.c @ 8786:e3693cef784a libavcodec

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%
author gpoirier
date Tue, 10 Feb 2009 10:35:05 +0000
parents e9d9d946f213
children 043574c5c153
line wrap: on
line diff
--- a/bfi.c	Mon Feb 09 23:37:31 2009 +0000
+++ b/bfi.c	Tue Feb 10 10:35:05 2009 +0000
@@ -94,7 +94,7 @@
 
     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;