File: 0006-libpng16.patch

package info (click to toggle)
libtheora 1.1.1%2Bdfsg.1-14
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,460 kB
  • ctags: 3,487
  • sloc: ansic: 32,561; sh: 9,675; makefile: 743
file content (22 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix build problem with libpng16.
 Backport fix from upstream to use sizeof() instead of png_sizeof().
Author: Tristan Matthew <le.businessman@gmail.com>
Bug-Debian: https://bugs.debian.org/809949
Origin: backport, https://git.xiph.org/?p=theora.git;a=commitdiff;h=7288b539c52e99168488dc3a343845c9365617c8

Index: libtheora/examples/png2theora.c
===================================================================
--- libtheora.orig/examples/png2theora.c	2016-02-07 10:37:24.586795794 +0000
+++ libtheora/examples/png2theora.c	2016-02-07 10:38:11.983361108 +0000
@@ -462,9 +462,9 @@
   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);
   }