Browse Source

Increase Pictor/PC Paint palette dynamics.

tags/n0.9
Carl Eugen Hoyos 14 years ago
parent
commit
a95906af57
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/pictordec.c
  2. +1
    -1
      tests/ref/fate/pictor

+ 1
- 1
libavcodec/pictordec.c View File

@@ -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) {


+ 1
- 1
tests/ref/fate/pictor View File

@@ -1 +1 @@
0, 0, 192816, 0xf97e2ba1
0, 0, 192816, 0x29b9c158

Loading…
Cancel
Save