[FFmpeg-cvslog] v210enc: Fix warning: ‘val’ may be use =?UTF-8?Q?d=20uninitialized=20in=20th?==?UTF-8?Q?is=20function=20?=[ -Wuninitialized]
Michael Niedermayer
git at videolan.org
Sun Dec 18 01:22:44 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 18 00:55:21 2011 +0100| [c9dc66375b18590462f829a652d210c2e094693c] | committer: Michael Niedermayer
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9dc66375b18590462f829a652d210c2e094693c
---
libavcodec/v210enc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
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;
More information about the ffmpeg-cvslog
mailing list