From 53509d20cac1f9c4bb7e746f36e25d6fc66ae31b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Dec 2011 01:06:07 +0100 Subject: [PATCH] =?UTF-8?q?v210dec:=20Fix=20warning:=20=E2=80=98val?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20funct?= =?UTF-8?q?ion=20[-Wuninitialized]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Niedermayer --- libavcodec/v210dec.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c index 147f1f20be..1af7f943e1 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -126,14 +126,14 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, val = av_le2ne32(*src++); *y++ = val & 0x3FF; - } - if (w < avctx->width - 3) { - *u++ = (val >> 10) & 0x3FF; - *y++ = (val >> 20) & 0x3FF; + if (w < avctx->width - 3) { + *u++ = (val >> 10) & 0x3FF; + *y++ = (val >> 20) & 0x3FF; - val = av_le2ne32(*src++); - *v++ = val & 0x3FF; - *y++ = (val >> 10) & 0x3FF; + val = av_le2ne32(*src++); + *v++ = val & 0x3FF; + *y++ = (val >> 10) & 0x3FF; + } } psrc += stride;