From cad6f6cdee4f2fc5b7297074c384cbd27025eec2 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 20 Jun 2003 15:51:24 +0000 Subject: 1000l Originally committed as revision 1979 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/dv1394.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavformat/dv1394.c') diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c index 2eff220..5e8b83d 100644 --- a/libavformat/dv1394.c +++ b/libavformat/dv1394.c @@ -91,21 +91,21 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap return -ENOMEM; } - dv->width = DV1394_WIDTH; - dv->height = DV1394_HEIGHT; + /* FIXME: Need a format change parameter */ + dv->format = DV1394_NTSC; if (ap->channel) dv->channel = ap->channel; else dv->channel = DV1394_DEFAULT_CHANNEL; - /* FIXME: Need a format change parameter */ - dv->format = DV1394_NTSC; - + dv->width = DV1394_WIDTH; if (dv->format == DV1394_NTSC) { + dv->height = DV1394_NTSC_HEIGHT; dv->frame_size = DV1394_NTSC_FRAME_SIZE; dv->frame_rate = 30; } else { + dv->height = DV1394_PAL_HEIGHT; dv->frame_size = DV1394_PAL_FRAME_SIZE; dv->frame_rate = 25; } -- cgit v1.1