Mercurial > libavcodec.hg
changeset 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 | 8ec0175bbcb5 |
children | 7b81aa80ec46 |
files | eatgv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/eatgv.c Wed Feb 11 12:02:16 2009 +0000 +++ b/eatgv.c Wed Feb 11 14:52:35 2009 +0000 @@ -63,7 +63,7 @@ */ static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) { unsigned char *dst_end = dst + width*height; - int size,size1,size2,offset,run; + int size, size1, size2, av_uninit(offset), run; unsigned char *dst_start = dst; if (src[0] & 0x01)