diff options
author | Patrik Kullman <patrik@yes.nu> | 2009-02-10 10:35:05 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2009-02-10 10:35:05 +0000 |
commit | 79ff462e73e73591573bcd01e8ee6614b7ac1c69 (patch) | |
tree | 1509d671feba62e2737758f514fb179263bcbcc2 /libavcodec/bfi.c | |
parent | 0dd89666380be935d5b3b52dce09bcd09688d267 (diff) | |
download | ffmpeg-79ff462e73e73591573bcd01e8ee6614b7ac1c69.tar.gz |
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
Diffstat (limited to 'libavcodec/bfi.c')
-rw-r--r-- | libavcodec/bfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c index baf09976f3..50d3beafa4 100644 --- a/libavcodec/bfi.c +++ b/libavcodec/bfi.c @@ -94,7 +94,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data, 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; |