Skip to content
Snippets Groups Projects
Commit 58637a0b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Kostya Shishkov
Browse files

Support decoding unaligned rgb24 lagarith.

parent 520c1ec6
No related branches found
No related tags found
No related merge requests found
...@@ -496,7 +496,8 @@ static int lag_decode_frame(AVCodecContext *avctx, ...@@ -496,7 +496,8 @@ static int lag_decode_frame(AVCodecContext *avctx,
offset_ry += 4; offset_ry += 4;
offs[3] = AV_RL32(buf + 9); offs[3] = AV_RL32(buf + 9);
case FRAME_ARITH_RGB24: 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; avctx->pix_fmt = PIX_FMT_RGB24;
if (avctx->get_buffer(avctx, p) < 0) { if (avctx->get_buffer(avctx, p) < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment