mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
This commit is contained in:
@ -142,16 +142,6 @@ 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;
|
||||
else if (!strcasecmp(ap->standard, "secam"))
|
||||
s->standard = VIDEO_MODE_SECAM;
|
||||
else
|
||||
s->standard = VIDEO_MODE_NTSC;
|
||||
}
|
||||
#endif
|
||||
tuner.mode = s->standard;
|
||||
ioctl(video_fd, VIDIOCSTUNER, &tuner);
|
||||
}
|
||||
|
Reference in New Issue
Block a user