From 58637a0b249cba44ed9aaa54d8379a1b70d875d0 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 7 May 2012 22:25:53 -0600 Subject: [PATCH] Support decoding unaligned rgb24 lagarith. Signed-off-by: Kostya Shishkov --- libavcodec/lagarith.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index b27e755a86..41df353b3a 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -496,7 +496,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) {