aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-18 01:06:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-18 01:20:18 +0100
commit53509d20cac1f9c4bb7e746f36e25d6fc66ae31b (patch)
tree0a400b3af4a220f1f8e2fdc20d0da4c8287ca8fe
parentc9dc66375b18590462f829a652d210c2e094693c (diff)
downloadffmpeg-53509d20cac1f9c4bb7e746f36e25d6fc66ae31b.tar.gz
v210dec: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/v210dec.c16
1 files changed, 8 insertions, 8 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;
-
- val = av_le2ne32(*src++);
- *v++ = val & 0x3FF;
- *y++ = (val >> 10) & 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;
+ }
}
psrc += stride;