summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/v210enc.c12
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;
OpenPOWER on IntegriCloud