aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lagarith.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-04-15 16:33:24 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-04-15 16:34:33 +0200
commit8cb9f99e9fbdbc92c82f00f9a679542bac87558c (patch)
tree69be469672a7f98bf7402a43947667b1671bed46 /libavcodec/lagarith.c
parentb1096b6ee7d51c8e2b900af375b3f14194241ac2 (diff)
downloadffmpeg-8cb9f99e9fbdbc92c82f00f9a679542bac87558c.tar.gz
Support decoding unaligned rgb24 lagarith.
Fixes ticket #1214.
Diffstat (limited to 'libavcodec/lagarith.c')
-rw-r--r--libavcodec/lagarith.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 7f47b75826..3df5f2600a 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -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) {