diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-10-13 13:08:10 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-16 16:46:29 +0200 |
commit | 86460a0342d7cbd59ad794f515d7d525331b54dd (patch) | |
tree | e3e0ff4126c5bad930943a40d06f391ced2b4840 /libavformat/internal.h | |
parent | 31da5222a400a385c0633c54e20b0ae1b30730df (diff) | |
download | ffmpeg-86460a0342d7cbd59ad794f515d7d525331b54dd.tar.gz |
lavf/flvdec: replace a private option with a field in FFFormatContext
The demuxer's 'missing_streams' private option is used to communicate
information from the demuxer to avformat_find_stream_info(). However,
that is not only unnecessarily complicated, it also leaks internal
information to users, e.g. this option appears in the results of the
fate-flv-demux test.
Use a new field in FFFormatContext to communicate this information
instead.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 5cfcc20ec3..b909adf209 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -120,6 +120,8 @@ typedef struct FFFormatContext { * ID3v2 tag useful for MP3 demuxing */ AVDictionary *id3v2_meta; + + int missing_streams; } FFFormatContext; static av_always_inline FFFormatContext *ffformatcontext(AVFormatContext *s) |