From a5df11ab1e0e2c4bc4218a6543f6dfaf7169d4e4 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Thu, 23 Jan 2003 18:44:26 +0000 Subject: dv1394 channel selection by Max Krasnyansky - modified channel number to be in base 10 by default Originally committed as revision 1500 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/dv1394.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavformat/dv1394.c') diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c index f0b5e8d..2c70827 100644 --- a/libavformat/dv1394.c +++ b/libavformat/dv1394.c @@ -84,7 +84,11 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap dv->width = DV1394_WIDTH; dv->height = DV1394_HEIGHT; - dv->channel = ap->channel; + + if (ap->channel) + dv->channel = ap->channel; + else + dv->channel = DV1394_DEFAULT_CHANNEL; dv->frame_rate = 30; -- cgit v1.1