summaryrefslogtreecommitdiff
path: root/libavdevice/v4l.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-23 21:40:44 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-25 15:55:47 +0200
commitfc68a8f7030227fc4fa8d83b9051aaf598cd12dd (patch)
treecb2db6603f6cd1adea0bbc91c150e2d0036dee81 /libavdevice/v4l.c
parentb3da2692115ea17190544883d15efa36219da99e (diff)
lavf: deprecate AVFormatParameters.standard.
Diffstat (limited to 'libavdevice/v4l.c')
-rw-r--r--libavdevice/v4l.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c
index 8c1134536a..54d0394ff5 100644
--- a/libavdevice/v4l.c
+++ b/libavdevice/v4l.c
@@ -136,6 +136,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
/* set tv standard */
if (!ioctl(video_fd, VIDIOCGTUNER, &tuner)) {
+#if FF_API_FORMAT_PARAMETERS
if (ap->standard) {
if (!strcasecmp(ap->standard, "pal"))
s->standard = VIDEO_MODE_PAL;
@@ -144,6 +145,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
else
s->standard = VIDEO_MODE_NTSC;
}
+#endif
tuner.mode = s->standard;
ioctl(video_fd, VIDIOCSTUNER, &tuner);
}