[MPlayer-cvslog] CVS: main/libvo vo_jpeg.c,1.23,1.24

Arpi arpi at mplayerhq.hu
Sun Jan 16 12:56:07 CET 2005


Hi,

> +static int int_zero_hundred(int *val)
> +{
> +    if ( (*val >=0) && (*val<=100) )
> +        return 1;
> +    return 0;

> +        {"optimize",    OPT_ARG_INT,    &jpeg_optimize,
> +                                                (opt_test_f)int_zero_hundred},
> +        {"smooth",      OPT_ARG_INT,    &jpeg_smooth,
> +                                                (opt_test_f)int_zero_hundred},
> +        {"quality",     OPT_ARG_INT,    &jpeg_quality,
> +                                                (opt_test_f)int_zero_hundred},

what's this mess ??????
why didnt you adopt the same config struct used in main commandline parser,
or even better, the cfg.h one from G2 instead of this?
(i mean the flags, min, max fields)


A'rpi / MPlayer, Astral & ESP-team

--
Girls are like internet domain names, the ones I like are already taken.




More information about the MPlayer-cvslog mailing list