[FFmpeg-cvslog] Set AVS palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:57:04 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:46:58 2011 +0100| [7b40f46fe274b73331c8eb8d6f25138d81b8db9e] | committer: Carl Eugen Hoyos
Set AVS palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b40f46fe274b73331c8eb8d6f25138d81b8db9e
---
libavcodec/avs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index cf965b3..4179821 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -85,8 +85,10 @@ avs_decode_frame(AVCodecContext * avctx,
if (first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * (last - first))
return AVERROR_INVALIDDATA;
buf += 4;
- for (i=first; i<last; i++, buf+=3)
+ for (i=first; i<last; i++, buf+=3) {
pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
+ pal[i] |= 0xFF << 24;
+ }
sub_type = buf[0];
type = buf[1];
More information about the ffmpeg-cvslog
mailing list