[FFmpeg-cvslog] mss1: report palette changed when some additional colours were decoded
Kostya Shishkov
git at videolan.org
Thu Jun 28 01:09:06 CEST 2012
ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Wed Jun 27 10:07:47 2012 +0200| [8f5d573a83d16ed26a71be995cbb886fb743a482] | committer: Kostya Shishkov
mss1: report palette changed when some additional colours were decoded
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f5d573a83d16ed26a71be995cbb886fb743a482
---
libavcodec/mss1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index 9527374..062cf3a 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)
More information about the ffmpeg-cvslog
mailing list