Browse Source

Make CDXL palette opaque.

tags/n0.11
Carl Eugen Hoyos 14 years ago
parent
commit
44f5b26212
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cdxl.c

+ 1
- 1
libavcodec/cdxl.c View File

@@ -56,7 +56,7 @@ static void import_palette(CDXLVideoContext *c, uint32_t *new_palette)
unsigned r = ((rgb >> 8) & 0xF) * 0x11; unsigned r = ((rgb >> 8) & 0xF) * 0x11;
unsigned g = ((rgb >> 4) & 0xF) * 0x11; unsigned g = ((rgb >> 4) & 0xF) * 0x11;
unsigned b = (rgb & 0xF) * 0x11; unsigned b = (rgb & 0xF) * 0x11;
AV_WN32(&new_palette[i], (r << 16) | (g << 8) | b);
AV_WN32(&new_palette[i], (0xFFU << 24) | (r << 16) | (g << 8) | b);
} }
} }




Loading…
Cancel
Save