mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Support decoding unaligned rgb24 lagarith.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
This commit is contained in:
parent
520c1ec699
commit
58637a0b24
@ -496,7 +496,8 @@ static int lag_decode_frame(AVCodecContext *avctx,
|
|||||||
offset_ry += 4;
|
offset_ry += 4;
|
||||||
offs[3] = AV_RL32(buf + 9);
|
offs[3] = AV_RL32(buf + 9);
|
||||||
case FRAME_ARITH_RGB24:
|
case FRAME_ARITH_RGB24:
|
||||||
if (frametype == FRAME_ARITH_RGB24)
|
case FRAME_U_RGB24:
|
||||||
|
if (frametype == FRAME_ARITH_RGB24 || frametype == FRAME_U_RGB24)
|
||||||
avctx->pix_fmt = PIX_FMT_RGB24;
|
avctx->pix_fmt = PIX_FMT_RGB24;
|
||||||
|
|
||||||
if (avctx->get_buffer(avctx, p) < 0) {
|
if (avctx->get_buffer(avctx, p) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user