OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520c1ec
)
Support decoding unaligned rgb24 lagarith.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Tue, 8 May 2012 04:25:53 +0000
(22:25 -0600)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 8 May 2012 05:23:44 +0000
(07:23 +0200)
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
libavcodec/lagarith.c
patch
|
blob
|
history
diff --git
a/libavcodec/lagarith.c
b/libavcodec/lagarith.c
index
b27e755
..
41df353
100644
(file)
--- 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) {