Annotation of /trunk/subtitleripper/patches/subtitleripper-0.3.4-libpng.patch
Parent Directory | Revision Log
Revision 948 -
(hide annotations)
(download)
Sun Dec 13 15:37:48 2009 UTC (14 years, 9 months ago) by niro
File size: 574 byte(s)
Sun Dec 13 15:37:48 2009 UTC (14 years, 9 months ago) by niro
File size: 574 byte(s)
added several patches
1 | niro | 948 | diff -NrU5 subtitleripper.orig/spudec.c subtitleripper/spudec.c |
2 | --- subtitleripper.orig/spudec.c 2009-05-20 03:06:23.000000000 -0600 | ||
3 | +++ subtitleripper/spudec.c 2009-05-20 03:07:47.000000000 -0600 | ||
4 | @@ -34,17 +34,18 @@ | ||
5 | |||
6 | #ifdef _HAVE_ZLIB_ | ||
7 | #include <zlib.h> | ||
8 | #endif | ||
9 | |||
10 | +#ifdef _HAVE_PNG_ | ||
11 | +#include <png.h> | ||
12 | +#endif | ||
13 | + | ||
14 | #ifdef _HAVE_LIB_PPM_ | ||
15 | #include <netpbm/ppm.h> | ||
16 | #endif | ||
17 | |||
18 | -#ifdef _HAVE_PNG_ | ||
19 | -#include "png.h" | ||
20 | -#endif | ||
21 | |||
22 | static void spudec_handle_rest(spudec_handle_t *this); | ||
23 | |||
24 | // read a big endian 16 bit value | ||
25 | static inline unsigned int get_be16(const unsigned char *p) |