summaryrefslogtreecommitdiff
path: root/libavcodec/mss1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-06-27 10:07:47 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-06-27 18:05:58 +0200
commit8f5d573a83d16ed26a71be995cbb886fb743a482 (patch)
tree364aff670e1df8a1e125c9add895e082f71508e4 /libavcodec/mss1.c
parenta5bfa66df516b7be55fd08fc62c2b012fc18e340 (diff)
mss1: report palette changed when some additional colours were decoded
Diffstat (limited to 'libavcodec/mss1.c')
-rw-r--r--libavcodec/mss1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index 952737440b..062cf3a7a5 100644
--- a/libavcodec/mss1.c
+++ b/libavcodec/mss1.c
@@ -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)