From 5e3229df4ca86322f334bd098a9335f66ebdd649 Mon Sep 17 00:00:00 2001 From: Andriy Gelman Date: Thu, 17 Oct 2019 10:49:20 -0400 Subject: 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 --- libavformat/avformat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/avformat.h') 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 -- cgit v1.2.3