[MPlayer-cvslog] CVS: main/libvo vo_zr2.c,1.5,1.6
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jan 16 14:37:50 CET 2005
Hi,
On Sat, Jan 08, 2005 at 03:25:24PM +0100, Rik Snel CVS wrote:
> +static int get_norm(strarg_t *n) {
> + if (!strncmp(n->str, "PAL", n->len)) return VIDEO_MODE_PAL;
> + if (!strncmp(n->str, "NTSC", n->len)) return VIDEO_MODE_NTSC;
> + if (!strncmp(n->str, "SECAM", n->len)) return VIDEO_MODE_SECAM;
> + if (!strncmp(n->str, "auto", n->len)) return VIDEO_MODE_AUTO;
> + return -1; /* invalid */
> +}
This will also accept e.g. P and PA for PAL, but not e.g. pal.
If that's what you want, please document it.
You should also update the manpage...
Greetings,
Reimar Döffinger
More information about the MPlayer-cvslog
mailing list