changeset 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 bee83b3f9a6b
children 9575568668c4
files bfi.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;