mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
png: fix compilation with libpng 1.4
png_set_gray_1_2_4_to_8() has been deprecated for a while and was finally removed in libpng 1.4.x. Use png_set_expand_gray_1_2_4_to_8() instead. Fixes #608629.
This commit is contained in:
parent
c35a984801
commit
2514421c13
1 changed files with 4 additions and 0 deletions
|
@ -397,7 +397,11 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
|
|||
png_set_gray_to_rgb (pngdec->png);
|
||||
if (bpc < 8) { /* Convert to 8 bits */
|
||||
GST_LOG_OBJECT (pngdec, "converting grayscale image to 8 bits");
|
||||
#if PNG_LIBPNG_VER < 10400
|
||||
png_set_gray_1_2_4_to_8 (pngdec->png);
|
||||
#else
|
||||
png_set_expand_gray_1_2_4_to_8 (pngdec->png);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue