diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-03-25 16:12:51 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-04 21:43:06 +0200 |
commit | e0f8be6413b6a8d334d6052e610af32935c310af (patch) | |
tree | 1548e782ae23ad6e46225593b96928a85d1286a5 /libavformat/avformat.h | |
parent | 4d7ed3e73541983459a7913c2034eba69ebc113d (diff) | |
download | ffmpeg-e0f8be6413b6a8d334d6052e610af32935c310af.tar.gz |
avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 43afa9f526..5d224c4899 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -337,7 +337,9 @@ typedef struct AVProbeData { int buf_size; /**< Size of buf except extra allocated bytes */ } AVProbeData; -#define AVPROBE_SCORE_MAX 100 ///< maximum score, half of that is used for file-extension-based detection +#define AVPROBE_SCORE_EXTENSION 50 ///< score for file extension +#define AVPROBE_SCORE_MAX 100 ///< maximum score + #define AVPROBE_PADDING_SIZE 32 ///< extra allocated bytes at the end of the probe buffer /// Demuxer will use avio_open, no opened file should be provided by the caller. |