[FFmpeg-cvslog] Increase Pictor/PC Paint palette dynamics.

Carl Eugen Hoyos git at videolan.org
Sun Nov 13 15:45:12 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Nov 13 14:52:21 2011 +0100| [a95906af57593dd0f4754b6e2e1d777bbb382f37] | committer: Carl Eugen Hoyos

Increase Pictor/PC Paint palette dynamics.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a95906af57593dd0f4754b6e2e1d777bbb382f37
---

 libavcodec/pictordec.c |    2 +-
 tests/ref/fate/pictor  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index ae6e488..436b96d 100644
--- a/libavcodec/pictordec.c
+++ b/libavcodec/pictordec.c
@@ -177,7 +177,7 @@ static int decode_frame(AVCodecContext *avctx,
         npal = FFMIN(esize / 3, 256);
         for (i = 0; i < npal; i++) {
             palette[i] = AV_RB24(buf + i*3) << 2;
-            palette[i] |= 0xFF << 24;
+            palette[i] |= 0xFF << 24 | palette[i] >> 6 & 0x30303;
         }
     } else {
         if (bpp == 1) {
diff --git a/tests/ref/fate/pictor b/tests/ref/fate/pictor
index 3fa0f31..e307b5f 100644
--- a/tests/ref/fate/pictor
+++ b/tests/ref/fate/pictor
@@ -1 +1 @@
-0, 0, 192816, 0xf97e2ba1
+0, 0, 192816, 0x29b9c158



More information about the ffmpeg-cvslog mailing list