diff options
Diffstat (limited to 'ext/libpng')
-rw-r--r-- | ext/libpng/gstpngdec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index bed0a63d..e7457817 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -357,9 +357,14 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec) /* Get Color type */ color_type = png_get_color_type (pngdec->png, pngdec->info); - /* HACK: The doc states that it's RGBA but apparently it's not... */ +#if 0 + /* We used to have this HACK to reverse the outgoing bytes, but the problem + * that originally required the hack seems to have been in ffmpegcolorspace's + * RGBA descriptions. It doesn't seem needed now that's fixed, but might + * still be needed on big-endian systems, I'm not sure. J.S. 6/7/2007 */ if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) png_set_bgr (pngdec->png); +#endif /* Gray scale converted to RGB and upscaled to 8 bits */ if ((color_type == PNG_COLOR_TYPE_GRAY_ALPHA) || |