From 99b1196961dcc7e7ea8ec0371f0a9590f498b48a Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 30 2020 10:05:42 +0000 Subject: Apply patch libtheora-1.1.1-libpng16.patch patch_name: libtheora-1.1.1-libpng16.patch present_in_specfile: true no_prefix: true --- diff --git a/examples/png2theora.c b/examples/png2theora.c index 71a0d0f..ed24c2a 100644 --- a/examples/png2theora.c +++ b/examples/png2theora.c @@ -462,9 +462,9 @@ png_read(const char *pathname, unsigned int *w, unsigned int *h, unsigned char * png_set_strip_alpha(png_ptr); row_data = (png_bytep)png_malloc(png_ptr, - 3*height*width*png_sizeof(*row_data)); + 3*height*width*sizeof(*row_data)); row_pointers = (png_bytep *)png_malloc(png_ptr, - height*png_sizeof(*row_pointers)); + height*sizeof(*row_pointers)); for(y = 0; y < height; y++) { row_pointers[y] = row_data + y*(3*width); }