diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-18 03:55:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-18 04:20:18 +0400 |
commit | c9dc66375b18590462f829a652d210c2e094693c (patch) | |
tree | 118903bb7daa3f4d7878b3506e5245938da40c13 | |
parent | bd35dfeaa083bc5fb38d900a3055a418ee64118b (diff) |
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/v210enc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 92577ef80f..1a78aa2475 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; |