1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Support decoding unaligned rgb24 lagarith.

Fixes ticket #1214.
This commit is contained in:
Carl Eugen Hoyos 2012-04-15 16:33:24 +02:00
parent b1096b6ee7
commit 8cb9f99e9f

View File

@ -506,7 +506,8 @@ static int lag_decode_frame(AVCodecContext *avctx,
offset_ry += 4;
offs[3] = AV_RL32(buf + 9);
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;
if (avctx->get_buffer(avctx, p) < 0) {