mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
cog: Use png_get_io_ptr() instead of accessing io_ptr directly
This commit is contained in:
parent
12fb307494
commit
e44da2ded0
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ struct png_data_struct
|
||||||
static void
|
static void
|
||||||
read_data (png_structp png_ptr, png_bytep data, png_size_t length)
|
read_data (png_structp png_ptr, png_bytep data, png_size_t length)
|
||||||
{
|
{
|
||||||
struct png_data_struct *s = png_ptr->io_ptr;
|
struct png_data_struct *s = png_get_io_ptr (png_ptr);
|
||||||
|
|
||||||
memcpy (data, s->data + s->offset, length);
|
memcpy (data, s->data + s->offset, length);
|
||||||
s->offset += length;
|
s->offset += length;
|
||||||
|
|
Loading…
Reference in a new issue