comparison 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
comparison
equal deleted inserted replaced
8785:bee83b3f9a6b 8786:e3693cef784a
92 92
93 buf += 4; //Unpacked size, not required. 93 buf += 4; //Unpacked size, not required.
94 94
95 while (dst != frame_end) { 95 while (dst != frame_end) {
96 static const uint8_t lentab[4]={0,2,0,1}; 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 unsigned int code = byte >> 6; 98 unsigned int code = byte >> 6;
99 unsigned int length = byte & ~0xC0; 99 unsigned int length = byte & ~0xC0;
100 100
101 /* Get length and offset(if required) */ 101 /* Get length and offset(if required) */
102 if (length == 0) { 102 if (length == 0) {