[FFmpeg-cvslog] Support decoding unaligned rgb24 lagarith.
Carl Eugen Hoyos
git at videolan.org
Sun Apr 15 16:36:55 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Apr 15 16:33:24 2012 +0200| [8cb9f99e9fbdbc92c82f00f9a679542bac87558c] | committer: Carl Eugen Hoyos
Support decoding unaligned rgb24 lagarith.
Fixes ticket #1214.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8cb9f99e9fbdbc92c82f00f9a679542bac87558c
---
libavcodec/lagarith.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 7f47b75..3df5f26 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) {
More information about the ffmpeg-cvslog
mailing list