diff options
Diffstat (limited to 'libavformat/dv1394.c')
-rw-r--r-- | libavformat/dv1394.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |