[FFmpeg-cvslog] Support decoding unaligned rgb24 lagarith.

Carl Eugen Hoyos git at videolan.org
Tue May 8 22:07:21 CEST 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon May  7 22:25:53 2012 -0600| [58637a0b249cba44ed9aaa54d8379a1b70d875d0] | committer: Kostya Shishkov

Support decoding unaligned rgb24 lagarith.

Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58637a0b249cba44ed9aaa54d8379a1b70d875d0
---

 libavcodec/lagarith.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index b27e755..41df353 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) {



More information about the ffmpeg-cvslog mailing list