aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-05-07 22:25:53 -0600
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-05-08 07:23:44 +0200
commit58637a0b249cba44ed9aaa54d8379a1b70d875d0 (patch)
tree7f8f859b7d327e5b6e5bd62fb48323a6b35a0039
parent520c1ec699161a0463fc6efacc91974601c5149d (diff)
downloadffmpeg-58637a0b249cba44ed9aaa54d8379a1b70d875d0.tar.gz
Support decoding unaligned rgb24 lagarith.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
-rw-r--r--libavcodec/lagarith.c3
1 files changed, 2 insertions, 1 deletions
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) {