From c9dc66375b18590462f829a652d210c2e094693c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Dec 2011 00:55:21 +0100 Subject: =?UTF-8?q?v210enc:=20Fix=20=20warning:=20=E2=80=98val=E2=80=99=20?= =?UTF-8?q?may=20be=20used=20uninitialized=20in=20this=20function=20[-Wuni?= =?UTF-8?q?nitialized]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Niedermayer --- libavcodec/v210enc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 92577ef..1a78aa2 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -90,13 +90,13 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, val = CLIP(*y++); if (w == avctx->width - 2) bytestream_put_le32(&p, val); - } - if (w < avctx->width - 3) { - val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20); - bytestream_put_le32(&p, val); + if (w < avctx->width - 3) { + val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20); + bytestream_put_le32(&p, val); - val = CLIP(*v++) | (CLIP(*y++) << 10); - bytestream_put_le32(&p, val); + val = CLIP(*v++) | (CLIP(*y++) << 10); + bytestream_put_le32(&p, val); + } } pdst += stride; -- cgit v1.1