summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-27 23:09:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-05-25 23:54:34 +0200
commitc37d17929590d318bc44f59d86a184e7e76def2b (patch)
tree763a92801082546e928560dad40b2235b4d0e1bd /libavformat/avformat.h
parentb0d0e29ffbd42f9feb358718cfe6a90608b69ecf (diff)
avformat: add format_probesize to allow tuning the maximum amount of bytes to identify the filetype
Currently probesize is cliped at 1mb before being used for format detection. Alternatively this cliping could be removed but this would then tie various things like stream analysis to the file detection. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 5c07541b36..5ca6f5aa0f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1523,6 +1523,13 @@ typedef struct AVFormatContext {
*/
int probe_score;
+ /**
+ * number of bytes to read maximally to identify format.
+ * - encoding: unused
+ * - decoding: set by user through AVOPtions (NO direct access)
+ */
+ int format_probesize;
+
/*****************************************************************
* All fields below this line are not part of the public API. They
* may not be used outside of libavformat and can be changed and