[libav-commits] Support decoding unaligned rgb24 lagarith.

Carl Eugen Hoyos git at libav.org
Tue May 8 07:24:57 CEST 2012


Module: libav
Branch: master
Commit: 58637a0b249cba44ed9aaa54d8379a1b70d875d0

Author:    Carl Eugen Hoyos <cehoyos at ag.or.at>
Committer: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:      Mon May  7 22:25:53 2012 -0600

Support decoding unaligned rgb24 lagarith.

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

---

 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 libav-commits mailing list