Commit afe950e1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bitpacked: Fix mixed declarations and statement

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0e2f0fed
...@@ -62,7 +62,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame, ...@@ -62,7 +62,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
uint64_t packet_size = (uint64_t)avpkt->size * 8; uint64_t packet_size = (uint64_t)avpkt->size * 8;
GetBitContext bc; GetBitContext bc;
uint16_t *y, *u, *v; uint16_t *y, *u, *v;
int ret, i; int ret, i, j;
ret = ff_get_buffer(avctx, frame, 0); ret = ff_get_buffer(avctx, frame, 0);
if (ret < 0) if (ret < 0)
...@@ -87,7 +87,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame, ...@@ -87,7 +87,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
u = (uint16_t*)(frame->data[1] + i * frame->linesize[1]); u = (uint16_t*)(frame->data[1] + i * frame->linesize[1]);
v = (uint16_t*)(frame->data[2] + i * frame->linesize[2]); 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); *u++ = get_bits(&bc, 10);
*y++ = get_bits(&bc, 10); *y++ = get_bits(&bc, 10);
*v++ = get_bits(&bc, 10); *v++ = get_bits(&bc, 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment