aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-11 14:52:35 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-11 14:52:35 +0000
commitdecae20f3662650ecb9602c0c760af275a1e7db3 (patch)
tree06c56ace4fbd8f9a9cfe01180cfa90641c75825b
parent71a3dff9d56b9ddf3aa8179bc4aed9724724068e (diff)
downloadffmpeg-decae20f3662650ecb9602c0c760af275a1e7db3.tar.gz
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 Originally committed as revision 17154 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/eatgv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index 82f78bc4ab..af34ed7d47 100644
--- a/libavcodec/eatgv.c
+++ b/libavcodec/eatgv.c
@@ -63,7 +63,7 @@ static av_cold int tgv_decode_init(AVCodecContext *avctx){
*/
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)