mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
avformat/avienc: Fix assertion failure with 256 palette entries
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a51d82b85c
commit
bb629792a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user