[FFmpeg-cvslog] avcodec/bitpacked: Fix mixed declarations and statement

Michael Niedermayer git at videolan.org
Fri Apr 7 05:11:23 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Apr  7 00:43:46 2017 +0200| [afe950e1fa87dbd664e8d7c1195d822d37f55f86] | committer: Michael Niedermayer

avcodec/bitpacked: Fix mixed declarations and statement

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=afe950e1fa87dbd664e8d7c1195d822d37f55f86
---

 libavcodec/bitpacked.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/bitpacked.c b/libavcodec/bitpacked.c
index 2af8126..12174d6 100644
--- a/libavcodec/bitpacked.c
+++ b/libavcodec/bitpacked.c
@@ -62,7 +62,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
     uint64_t packet_size = (uint64_t)avpkt->size * 8;
     GetBitContext bc;
     uint16_t *y, *u, *v;
-    int ret, i;
+    int ret, i, j;
 
     ret = ff_get_buffer(avctx, frame, 0);
     if (ret < 0)
@@ -87,7 +87,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
         u = (uint16_t*)(frame->data[1] + i * frame->linesize[1]);
         v = (uint16_t*)(frame->data[2] + i * frame->linesize[2]);
 
-        for (int j = 0; j < avctx->width; j += 2) {
+        for (j = 0; j < avctx->width; j += 2) {
             *u++ = get_bits(&bc, 10);
             *y++ = get_bits(&bc, 10);
             *v++ = get_bits(&bc, 10);



More information about the ffmpeg-cvslog mailing list