diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2019-10-17 10:49:20 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-03 11:52:32 +0100 |
commit | 5e3229df4ca86322f334bd098a9335f66ebdd649 (patch) | |
tree | 323d2b60daf824630cc304635746b1983f47268f /libavformat/avformat.h | |
parent | 33583803e107b6d532def0f9d949364b01b6ad5a (diff) |
avformat: Add max_probe_packets option
Allows user to set maximum number of buffered packets when
probing a codec. It was a hard-coded parameter before this commit.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6eb329f13f..d4d9a3b06e 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1951,6 +1951,13 @@ typedef struct AVFormatContext { * - decoding: set by user */ int skip_estimate_duration_from_pts; + + /** + * Maximum number of packets that can be probed + * - encoding: unused + * - decoding: set by user + */ + int max_probe_packets; } AVFormatContext; #if FF_API_FORMAT_GET_SET |