OSDN Git Service

mss1: report palette changed when some additional colours were decoded
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 27 Jun 2012 08:07:47 +0000 (10:07 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 27 Jun 2012 16:05:58 +0000 (18:05 +0200)
libavcodec/mss1.c

index 9527374..062cf3a 100644 (file)
@@ -557,7 +557,7 @@ static int decode_pal(MSS1Context *ctx, ArithCoder *acoder)
         *pal++ = (r << 16) | (g << 8) | b;
     }
 
-    return 0;
+    return !!ncol;
 }
 
 static int decode_pivot(MSS1Context *ctx, ArithCoder *acoder, int base)