Mercurial > libavformat.hg
diff avformat.h @ 5988:10867093c93c libavformat
Export av_probe_input_format2.
author | reimar |
---|---|
date | Sat, 01 May 2010 13:49:35 +0000 |
parents | f74198942337 |
children | 3de601aa9786 |
line wrap: on
line diff
--- a/avformat.h Wed Apr 28 20:00:23 2010 +0000 +++ b/avformat.h Sat May 01 13:49:35 2010 +0000 @@ -22,7 +22,7 @@ #define AVFORMAT_AVFORMAT_H #define LIBAVFORMAT_VERSION_MAJOR 52 -#define LIBAVFORMAT_VERSION_MINOR 61 +#define LIBAVFORMAT_VERSION_MINOR 62 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ @@ -888,6 +888,18 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened); /** + * Guesses the file format. + * + * @param is_opened Whether the file is already opened; determines whether + * demuxers with or without AVFMT_NOFILE are probed. + * @param score_max minimum score required to accept a detection, set to actual + * detection score afterwards. + * If the score is < AVPROBE_SCORE_MAX / 4 it is recommended + * to retry with a larger probe buffer. + */ +AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max); + +/** * Allocates all the structures needed to read an input stream. * This does not open the needed codecs for decoding the stream[s]. */