mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
[547/906] GstGLBumper: fix libPNG complaining about invalid png files
We failed to inform libPNG that we had already read the header
This commit is contained in:
parent
f0035b9a9b
commit
02fcc954de
1 changed files with 1 additions and 2 deletions
|
@ -157,7 +157,6 @@ gst_gl_bumper_init_resources (GstGLFilter * filter)
|
||||||
|
|
||||||
png_structp png_ptr;
|
png_structp png_ptr;
|
||||||
png_infop info_ptr;
|
png_infop info_ptr;
|
||||||
guint sig_read = 0;
|
|
||||||
png_uint_32 width = 0;
|
png_uint_32 width = 0;
|
||||||
png_uint_32 height = 0;
|
png_uint_32 height = 0;
|
||||||
gint bit_depth = 0;
|
gint bit_depth = 0;
|
||||||
|
@ -209,7 +208,7 @@ gst_gl_bumper_init_resources (GstGLFilter * filter)
|
||||||
|
|
||||||
png_init_io (png_ptr, fp);
|
png_init_io (png_ptr, fp);
|
||||||
|
|
||||||
png_set_sig_bytes (png_ptr, sig_read);
|
png_set_sig_bytes (png_ptr, sizeof (magic));
|
||||||
|
|
||||||
png_read_info (png_ptr, info_ptr);
|
png_read_info (png_ptr, info_ptr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue