mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
When playing
ftp://ftp.mplayerhq.hu/MPlayer/samples/V-codecs/QPEG/VWbig6.avi with my decoder (should appear soon) it hadn't changed palette even there are palette change chunks in that AVI. Here is small patch to make it work (zero number of colors to change in that chunk actually means to change ALL colors). patch by (Kostya <cannonball>at<bw-team>dot<com>) Originally committed as revision 3670 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ccff9da62a
commit
61c52ead7c
@ -512,6 +512,8 @@ resync:
|
||||
|
||||
first = get_byte(pb);
|
||||
clr = get_byte(pb);
|
||||
if(!clr) /* all 256 colors used */
|
||||
clr = 256;
|
||||
flags = get_le16(pb);
|
||||
p = 4;
|
||||
for (k = first; k < clr + first; k++) {
|
||||
|
Loading…
Reference in New Issue
Block a user