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/options_table.h | |
parent | 33583803e107b6d532def0f9d949364b01b6ad5a (diff) | |
download | ffmpeg-5e3229df4ca86322f334bd098a9335f66ebdd649.tar.gz |
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/options_table.h')
-rw-r--r-- | libavformat/options_table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/options_table.h b/libavformat/options_table.h index f2f077b34f..432818f80d 100644 --- a/libavformat/options_table.h +++ b/libavformat/options_table.h @@ -111,6 +111,7 @@ static const AVOption avformat_options[] = { {"protocol_blacklist", "List of protocols that are not allowed to be used", OFFSET(protocol_blacklist), AV_OPT_TYPE_STRING, { .str = NULL }, CHAR_MIN, CHAR_MAX, D }, {"max_streams", "maximum number of streams", OFFSET(max_streams), AV_OPT_TYPE_INT, { .i64 = 1000 }, 0, INT_MAX, D }, {"skip_estimate_duration_from_pts", "skip duration calculation in estimate_timings_from_pts", OFFSET(skip_estimate_duration_from_pts), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, D}, +{"max_probe_packets", "Maximum number of packets to probe a codec", OFFSET(max_probe_packets), AV_OPT_TYPE_INT, { .i64 = 2500 }, 0, INT_MAX, D }, {NULL}, }; |