From decae20f3662650ecb9602c0c760af275a1e7db3 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 11 Feb 2009 14:52:35 +0000 Subject: [PATCH] =?utf8?q?Add=20av=5Funinit=20macro=20to=20variable=20to?= =?utf8?q?=20avoid=20false=20positive=20warning:=20libavcodec/eatgv.c:=20I?= =?utf8?q?n=20function=20=E2=80=98tgv=5Fdecode=5Fframe=E2=80=99:=20libavco?= =?utf8?q?dec/eatgv.c:66:=20warning:=20=E2=80=98offset=E2=80=99=20may=20be?= =?utf8?q?=20used=20uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Originally committed as revision 17154 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/eatgv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index 82f78bc..af34ed7 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) -- 2.7.4