# HG changeset patch # User joey # Date 1069607399 0 # Node ID 4ff38d168c2f0addc356b5e179d592819ba85e75 # Parent 6e580b9012059c40e3ec201929d0c06a21ee227c fix for vf_palette, because paletted 8-bit to BGR{15,16} conversion is incorrect. the conversion should be rewritten as a better fix. diff -r 6e580b901205 -r 4ff38d168c2f libmpcodecs/vf_palette.c --- a/libmpcodecs/vf_palette.c Sun Nov 23 17:04:19 2003 +0000 +++ b/libmpcodecs/vf_palette.c Sun Nov 23 17:09:59 2003 +0000 @@ -14,18 +14,22 @@ //===========================================================================// +// commented out 16 and 15 bit output support, because the conversion +// routines are incorrrect. they assume the palette to be of the same +// depth as the output, which is incorrect. --Joey + static unsigned int bgr_list[]={ IMGFMT_BGR32, IMGFMT_BGR24, - IMGFMT_BGR16, - IMGFMT_BGR15, +// IMGFMT_BGR16, +// IMGFMT_BGR15, 0 }; static unsigned int rgb_list[]={ IMGFMT_RGB32, IMGFMT_RGB24, - IMGFMT_RGB16, - IMGFMT_RGB15, +// IMGFMT_RGB16, +// IMGFMT_RGB15, 0 };