Репозитории ALT
S: | 1.1.1-alt6 |
5.1: | 1.1.1-alt1 |
4.1: | 1.0-alt0.beta3 |
4.0: | 1.0alpha7-alt1 |
3.0: | 1.0alpha4-alt1 |
Группа :: Система/Библиотеки
Пакет: libtheora
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0004-examples-png_sizeof-no-longer-available-since-libpng.patch
Скачать
Скачать
From 3a50229f78c4ec370e2525020274fcba99d41290 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 4/5] 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 f375869..4aaaf3c 100644
--- a/examples/png2theora.c
+++ b/examples/png2theora.c
@@ -463,9 +463,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);
}