summaryrefslogtreecommitdiff
path: root/libavdevice/libdc1394.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-23 22:06:09 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-25 15:55:47 +0200
commitd20576d01b6489e37813302c208df01068418bfb (patch)
treefdedecc44f53c8b9543b7d43898f0ababe275a04 /libavdevice/libdc1394.c
parent79405e57dc1a1e2746c87cba677052d742dbb7ee (diff)
lavf: deprecate AVFormatParameters.channel.
Diffstat (limited to 'libavdevice/libdc1394.c')
-rw-r--r--libavdevice/libdc1394.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c
index a8406b8c2e..96e9e9b88b 100644
--- a/libavdevice/libdc1394.c
+++ b/libavdevice/libdc1394.c
@@ -159,8 +159,10 @@ static int dc1394_v1_read_header(AVFormatContext *c, AVFormatParameters * ap)
if (dc1394_read_common(c,ap,&fmt,&fps) != 0)
return -1;
+#if FF_API_FORMAT_PARAMETERS
if (ap->channel)
dc1394->channel = ap->channel;
+#endif
/* Now let us prep the hardware. */
dc1394->handle = dc1394_create_handle(0); /* FIXME: gotta have ap->port */