Projects
openEuler:24.03:SP1:Everything
libtheora
_service:tar_scm:examples-png_sizeof-no-longer-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:examples-png_sizeof-no-longer-available-since-libpng.patch of Package libtheora
From 7288b539c52e99168488dc3a343845c9365617c8 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <le.businessman@gmail.com> Date: Tue, 11 Feb 2014 18:55:07 +0000 Subject: [PATCH] examples: png_sizeof no longer available (since libpng 1.6) svn path=/trunk/theora/; revision=19088 --- examples/png2theora.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/png2theora.c b/examples/png2theora.c index 94a9ab9..281c8ac 100644 --- a/examples/png2theora.c +++ b/examples/png2theora.c @@ -461,9 +461,9 @@ png_read(const char *pathname, unsigned int *w, unsigned int *h, th_ycbcr_buffer 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); } -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2