aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2011-02-08 00:46:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-02-09 03:33:55 +0100
commit070e5ba560b86d8b0de72536d9e861b215d7ee20 (patch)
tree10d89911b1028c7499bb65120bf10fac5435905e /libavformat/avformat.h
parente74c01db7e2627f36e8829b9fc13fdd8aade5f0f (diff)
downloadffmpeg-070e5ba560b86d8b0de72536d9e861b215d7ee20.tar.gz
lavf: rename ff_probe_input_buffer to make it public
It is useful for applications that hand input data directly to lavf via a ByteIOContext. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 3940caad02fbc4f075e77bc605849b1d84ba1b8e)
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 66b220f599..aeaf902668 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1041,6 +1041,25 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max);
/**
+ * Probe a bytestream to determine the input format. Each time a probe returns
+ * with a score that is too low, the probe buffer size is increased and another
+ * attempt is made. When the maximum probe size is reached, the input format
+ * with the highest score is returned.
+ *
+ * @param pb the bytestream to probe
+ * @param fmt the input format is put here
+ * @param filename the filename of the stream
+ * @param logctx the log context
+ * @param offset the offset within the bytestream to probe from
+ * @param max_probe_size the maximum probe buffer size (zero for default)
+ * @return 0 in case of success, a negative value corresponding to an
+ * AVERROR code otherwise
+ */
+int av_probe_input_buffer(ByteIOContext *pb, AVInputFormat **fmt,
+ const char *filename, void *logctx,
+ unsigned int offset, unsigned int max_probe_size);
+
+/**
* Allocate all the structures needed to read an input stream.
* This does not open the needed codecs for decoding the stream[s].
*/