Commit 5e32a710 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

ext/libpng/gstpngdec.c: Remove endianness-flipping hack that seems to have...

ext/libpng/gstpngdec.c: Remove endianness-flipping hack that seems to have been required only because of a bug in ffm...

Original commit message from CVS:
* ext/libpng/gstpngdec.c: (gst_pngdec_caps_create_and_set):
Remove endianness-flipping hack that seems to have been required
only because of a bug in ffmpegcolorspace.
Partially Fixes: #451908
parent d13ee0df
2007-07-06 Jan Schmidt <thaytan@mad.scientist.com>
* ext/libpng/gstpngdec.c: (gst_pngdec_caps_create_and_set):
Remove endianness-flipping hack that seems to have been required
only because of a bug in ffmpegcolorspace.
Partially Fixes: #451908
2007-07-05 Stefan Kost <ensonic@users.sf.net> 2007-07-05 Stefan Kost <ensonic@users.sf.net>
* docs/plugins/Makefile.am: * docs/plugins/Makefile.am:
......
...@@ -357,9 +357,14 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec) ...@@ -357,9 +357,14 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
/* Get Color type */ /* Get Color type */
color_type = png_get_color_type (pngdec->png, pngdec->info); 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) if (color_type == PNG_COLOR_TYPE_RGB_ALPHA)
png_set_bgr (pngdec->png); png_set_bgr (pngdec->png);
#endif
/* Gray scale converted to RGB and upscaled to 8 bits */ /* Gray scale converted to RGB and upscaled to 8 bits */
if ((color_type == PNG_COLOR_TYPE_GRAY_ALPHA) || if ((color_type == PNG_COLOR_TYPE_GRAY_ALPHA) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment