[FFmpeg-cvslog] avformat/avienc: Fix assertion failure with 256 palette entries
Michael Niedermayer
git at videolan.org
Sun Feb 21 03:45:42 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Feb 21 02:56:11 2016 +0100| [bb629792a275f7231256be8e8a16e6f81671f36d] | committer: Michael Niedermayer
avformat/avienc: Fix assertion failure with 256 palette entries
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb629792a275f7231256be8e8a16e6f81671f36d
---
libavformat/avienc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 7480c86..ca505f4 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -693,7 +693,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
tag[2] = 'p'; tag[3] = 'c';
pc_tag = ff_start_tag(pb, tag);
avio_w8(pb, 0);
- avio_w8(pb, pal_size);
+ avio_w8(pb, pal_size & 0xFF);
avio_wl16(pb, 0); // reserved
for (i = 0; i < pal_size; i++) {
uint32_t v = AV_RL32(data + size - 4*pal_size + 4*i);
More information about the ffmpeg-cvslog
mailing list