diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-07 18:50:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-15 13:32:02 +0200 |
commit | ab223a4d8cdcbf3b7b6b9b6c3ecc95203a342f5c (patch) | |
tree | 3691581dbedee3f4b75ac556044d3f3820995426 /fftools/ffmpeg_demux.c | |
parent | 2ab9f247f7feb23bc9765dcbcc574687552fcea6 (diff) | |
download | ffmpeg-ab223a4d8cdcbf3b7b6b9b6c3ecc95203a342f5c.tar.gz |
fftools/ffmpeg: stop accessing input format from decoding code
Export the corresponding flag in InputFile instead. This will allow
making the demuxer AVFormatContext private in future commits, similarly
to what was previously done for muxers.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r-- | fftools/ffmpeg_demux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 2822f0ab7f..581990fdf2 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1504,6 +1504,8 @@ int ifile_open(const OptionsContext *o, const char *filename) d->duration = 0; d->time_base = (AVRational){ 1, 1 }; + f->format_nots = !!(ic->iformat->flags & AVFMT_NOTIMESTAMPS); + f->readrate = o->readrate ? o->readrate : 0.0; if (f->readrate < 0.0f) { av_log(d, AV_LOG_ERROR, "Option -readrate is %0.3f; it must be non-negative.\n", f->readrate); |