summaryrefslogtreecommitdiff
path: root/libavformat/dv1394.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2003-06-25 10:21:45 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2003-06-25 10:21:45 +0000
commite3ee328330e924e6524003a6e082934fddb87a44 (patch)
tree1737169dd2e55b799c854862ce012cf6433bfd48 /libavformat/dv1394.c
parent93caefc7d6608f109ae9ab16c2f6d5ae6c75cffd (diff)
tv standard selection support for dv1394 and grab (v4l)
Originally committed as revision 1987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv1394.c')
-rw-r--r--libavformat/dv1394.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c
index 5e8b83d2b4..0e373a311d 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;