Mercurial > mplayer.hg
comparison libvo/vo_png.c @ 30122:1772a5171ac7
Fix function declarations to avoid casting function pointers.
author | reimar |
---|---|
date | Fri, 01 Jan 2010 13:18:49 +0000 |
parents | 0f1b5b68af32 |
children | 0f5f75b4a015 |
comparison
equal
deleted
inserted
replaced
30121:28cbec606cbb | 30122:1772a5171ac7 |
---|---|
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 static void check_events(void){} | 284 static void check_events(void){} |
285 | 285 |
286 static int int_zero_to_nine(int *sh) | 286 static int int_zero_to_nine(void *value) |
287 { | 287 { |
288 int *sh = value; | |
288 if ( (*sh < 0) || (*sh > 9) ) | 289 if ( (*sh < 0) || (*sh > 9) ) |
289 return 0; | 290 return 0; |
290 return 1; | 291 return 1; |
291 } | 292 } |
292 | 293 |
293 static const opt_t subopts[] = { | 294 static const opt_t subopts[] = { |
294 {"alpha", OPT_ARG_BOOL, &use_alpha, NULL}, | 295 {"alpha", OPT_ARG_BOOL, &use_alpha, NULL}, |
295 {"z", OPT_ARG_INT, &z_compression, (opt_test_f)int_zero_to_nine}, | 296 {"z", OPT_ARG_INT, &z_compression, int_zero_to_nine}, |
296 {"outdir", OPT_ARG_MSTRZ, &png_outdir, NULL}, | 297 {"outdir", OPT_ARG_MSTRZ, &png_outdir, NULL}, |
297 {NULL} | 298 {NULL} |
298 }; | 299 }; |
299 | 300 |
300 static int preinit(const char *arg) | 301 static int preinit(const char *arg) |