diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-18 00:55:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-18 01:20:18 +0100 |
commit | c9dc66375b18590462f829a652d210c2e094693c (patch) | |
tree | 118903bb7daa3f4d7878b3506e5245938da40c13 /libavcodec/v210enc.c | |
parent | bd35dfeaa083bc5fb38d900a3055a418ee64118b (diff) | |
download | ffmpeg-c9dc66375b18590462f829a652d210c2e094693c.tar.gz |
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/v210enc.c')
-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; |