From e3ee328330e924e6524003a6e082934fddb87a44 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 25 Jun 2003 10:21:45 +0000 Subject: tv standard selection support for dv1394 and grab (v4l) Originally committed as revision 1987 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/dv1394.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavformat/dv1394.c') diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c index 5e8b83d..0e373a3 100644 --- a/libavformat/dv1394.c +++ b/libavformat/dv1394.c @@ -91,8 +91,10 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap return -ENOMEM; } - /* FIXME: Need a format change parameter */ - dv->format = DV1394_NTSC; + if (ap->standard && !strcasecmp(ap->standard, "pal")) + dv->format = DV1394_PAL; + else + dv->format = DV1394_NTSC; if (ap->channel) dv->channel = ap->channel; -- cgit v1.1