From 1e4eb387d4768089cfe8db0141ccc23089694fce Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 11 Feb 2009 14:57:42 +0000 Subject: [PATCH] =?UTF-8?q?Add=20av=5Funinit=20macro=20to=20variables=20to?= =?UTF-8?q?=20avoid=20false=20positive=20warnings:=20libavcodec/msrledec.c?= =?UTF-8?q?:=20In=20function=20=E2=80=98ff=5Fmsrle=5Fdecode=E2=80=99:=20li?= =?UTF-8?q?bavcodec/msrledec.c:139:=20warning:=20=E2=80=98pix32=E2=80=99?= =?UTF-8?q?=20may=20be=20used=20uninitialized=20in=20this=20function=20lib?= =?UTF-8?q?avcodec/msrledec.c:138:=20warning:=20=E2=80=98pix16=E2=80=99=20?= =?UTF-8?q?may=20be=20used=20uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 17156 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/msrledec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/msrledec.c b/libavcodec/msrledec.c index b49c19e095..40fec31278 100644 --- a/libavcodec/msrledec.c +++ b/libavcodec/msrledec.c @@ -135,8 +135,8 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic, int de uint8_t *output, *output_end; const uint8_t* src = data; int p1, p2, line=avctx->height, pos=0, i; - uint16_t pix16; - uint32_t pix32; + uint16_t av_uninit(pix16); + uint32_t av_uninit(pix32); output = pic->data[0] + (avctx->height - 1) * pic->linesize[0]; output_end = pic->data[0] + (avctx->height) * pic->linesize[0];