diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-01-08 01:05:30 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-01-08 01:05:30 +0200 |
commit | 231b33a02fae95b260120349040106bfa34a3750 (patch) | |
tree | 23c4de0e6263b2d99966348d7003177b3b3e3740 /libvo/vo_png.c | |
parent | 52126e574c7872ca95e7974cfe5445421b74f24c (diff) | |
parent | 92cd6dc3e916ae4275ff05d2b238fc778cfbfc6b (diff) | |
download | mpv-231b33a02fae95b260120349040106bfa34a3750.tar.bz2 mpv-231b33a02fae95b260120349040106bfa34a3750.tar.xz |
Merge svn changes up to r30165
Diffstat (limited to 'libvo/vo_png.c')
-rw-r--r-- | libvo/vo_png.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libvo/vo_png.c b/libvo/vo_png.c index 3d7d33927a..d562a44c46 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -222,16 +222,15 @@ static void uninit(void){} static void check_events(void){} -static int int_zero_to_nine(int *sh) +static int int_zero_to_nine(void *value) { - if ( (*sh < 0) || (*sh > 9) ) - return 0; - return 1; + int *sh = value; + return *sh >= 0 && *sh <= 9; } static const opt_t subopts[] = { {"alpha", OPT_ARG_BOOL, &use_alpha, NULL}, - {"z", OPT_ARG_INT, &z_compression, (opt_test_f)int_zero_to_nine}, + {"z", OPT_ARG_INT, &z_compression, int_zero_to_nine}, {NULL} }; |