comparison eatgv.c @ 8801:154d81241ac0 libavcodec

Add av_uninit macro to variable to avoid false positive warning: libavcodec/eatgv.c: In function ¡Ætgv_decode_frame¡Ç: libavcodec/eatgv.c:66: warning: ¡Æoffset¡Ç may be used uninitialized in this function
author diego
date Wed, 11 Feb 2009 14:52:35 +0000
parents e9d9d946f213
children bf274494b66e
comparison
equal deleted inserted replaced
8800:8ec0175bbcb5 8801:154d81241ac0
61 * Unpack buffer 61 * Unpack buffer
62 * @return 0 on success, -1 on critical buffer underflow 62 * @return 0 on success, -1 on critical buffer underflow
63 */ 63 */
64 static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) { 64 static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) {
65 unsigned char *dst_end = dst + width*height; 65 unsigned char *dst_end = dst + width*height;
66 int size,size1,size2,offset,run; 66 int size, size1, size2, av_uninit(offset), run;
67 unsigned char *dst_start = dst; 67 unsigned char *dst_start = dst;
68 68
69 if (src[0] & 0x01) 69 if (src[0] & 0x01)
70 src += 5; 70 src += 5;
71 else 71 else