# HG changeset patch # User michael # Date 1100223155 0 # Node ID 4e3bab6555ae45b3c3ae4b190c0edb5467694f7c # Parent 7793767ffe35dd9f245bb6cb62320c8017c9ecb3 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 atdot) diff -r 7793767ffe35 -r 4e3bab6555ae avidec.c --- a/avidec.c Thu Nov 11 18:09:28 2004 +0000 +++ b/avidec.c Fri Nov 12 01:32:35 2004 +0000 @@ -512,6 +512,8 @@ 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++) {