Commit a4855adc authored by Diego Biurrun's avatar Diego Biurrun

dvbsubdec: Fix compilation of debug code.

parent d2d67e42
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#ifdef DEBUG #ifdef DEBUG
#undef fprintf #undef fprintf
#undef perror
#if 0 #if 0
static void png_save(const char *filename, uint8_t *bitmap, int w, int h, static void png_save(const char *filename, uint8_t *bitmap, int w, int h,
uint32_t *rgba_palette) uint32_t *rgba_palette)
...@@ -49,7 +50,7 @@ static void png_save(const char *filename, uint8_t *bitmap, int w, int h, ...@@ -49,7 +50,7 @@ static void png_save(const char *filename, uint8_t *bitmap, int w, int h,
f = fopen(fname, "w"); f = fopen(fname, "w");
if (!f) { if (!f) {
perror(fname); perror(fname);
exit(1); return;
} }
fprintf(f, "P6\n" fprintf(f, "P6\n"
"%d %d\n" "%d %d\n"
...@@ -71,7 +72,7 @@ static void png_save(const char *filename, uint8_t *bitmap, int w, int h, ...@@ -71,7 +72,7 @@ static void png_save(const char *filename, uint8_t *bitmap, int w, int h,
f = fopen(fname2, "w"); f = fopen(fname2, "w");
if (!f) { if (!f) {
perror(fname2); perror(fname2);
exit(1); return;
} }
fprintf(f, "P5\n" fprintf(f, "P5\n"
"%d %d\n" "%d %d\n"
...@@ -105,7 +106,7 @@ static void png_save2(const char *filename, uint32_t *bitmap, int w, int h) ...@@ -105,7 +106,7 @@ static void png_save2(const char *filename, uint32_t *bitmap, int w, int h)
f = fopen(fname, "w"); f = fopen(fname, "w");
if (!f) { if (!f) {
perror(fname); perror(fname);
exit(1); return;
} }
fprintf(f, "P6\n" fprintf(f, "P6\n"
"%d %d\n" "%d %d\n"
...@@ -127,7 +128,7 @@ static void png_save2(const char *filename, uint32_t *bitmap, int w, int h) ...@@ -127,7 +128,7 @@ static void png_save2(const char *filename, uint32_t *bitmap, int w, int h)
f = fopen(fname2, "w"); f = fopen(fname2, "w");
if (!f) { if (!f) {
perror(fname2); perror(fname2);
exit(1); return;
} }
fprintf(f, "P5\n" fprintf(f, "P5\n"
"%d %d\n" "%d %d\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment