|
|
@ -126,7 +126,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, |
|
|
|
|
|
|
|
|
|
|
|
val = av_le2ne32(*src++); |
|
|
|
val = av_le2ne32(*src++); |
|
|
|
*y++ = val & 0x3FF; |
|
|
|
*y++ = val & 0x3FF; |
|
|
|
} |
|
|
|
|
|
|
|
if (w < avctx->width - 3) { |
|
|
|
if (w < avctx->width - 3) { |
|
|
|
*u++ = (val >> 10) & 0x3FF; |
|
|
|
*u++ = (val >> 10) & 0x3FF; |
|
|
|
*y++ = (val >> 20) & 0x3FF; |
|
|
|
*y++ = (val >> 20) & 0x3FF; |
|
|
@ -135,6 +134,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, |
|
|
|
*v++ = val & 0x3FF; |
|
|
|
*v++ = val & 0x3FF; |
|
|
|
*y++ = (val >> 10) & 0x3FF; |
|
|
|
*y++ = (val >> 10) & 0x3FF; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
psrc += stride; |
|
|
|
psrc += stride; |
|
|
|
y += pic->linesize[0] / 2 - avctx->width; |
|
|
|
y += pic->linesize[0] / 2 - avctx->width; |
|
|
|