diff options
Diffstat (limited to 'libvo/vo_png.c')
-rw-r--r-- | libvo/vo_png.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/vo_png.c b/libvo/vo_png.c index e404785736..94fbdcaf8f 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -286,9 +286,7 @@ static void check_events(void){} static int int_zero_to_nine(void *value) { int *sh = value; - if ( (*sh < 0) || (*sh > 9) ) - return 0; - return 1; + return *sh >= 0 && *sh <= 9; } static const opt_t subopts[] = { |