summaryrefslogtreecommitdiff
path: root/libavformat/format.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-10 01:36:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-10 01:36:21 +0200
commitc218d8218d95684c5e1b4c09ed0f258457f0ae7c (patch)
treee6595772cb2eb12b746a945a9d5a5ccd40982c87 /libavformat/format.c
parent0f7ca2d77893c87d3c6e008520f6b5549f410387 (diff)
parent24e87f7f425a52b1e69661dcb2fbe0555a76f30b (diff)
downloadffmpeg-c218d8218d95684c5e1b4c09ed0f258457f0ae7c.tar.gz
Merge commit '24e87f7f425a52b1e69661dcb2fbe0555a76f30b'
* commit '24e87f7f425a52b1e69661dcb2fbe0555a76f30b': Remove obsolete FF_API_PROBE_MIME cruft. Conflicts: libavformat/avformat.h libavformat/format.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/format.c')
-rw-r--r--libavformat/format.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/format.c b/libavformat/format.c
index 1c25d6b933..999e8216da 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -216,10 +216,8 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
if (av_match_ext(lpd.filename, fmt1->extensions))
score = AVPROBE_SCORE_EXTENSION;
}
-#if FF_API_PROBE_MIME
if (av_match_name(lpd.mime_type, fmt1->mime_type))
score = FFMAX(score, AVPROBE_SCORE_EXTENSION);
-#endif
if (score > score_max) {
score_max = score;
fmt = fmt1;
@@ -272,10 +270,9 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
if (offset >= max_probe_size)
return AVERROR(EINVAL);
-#if FF_API_PROBE_MIME
if (pb->av_class)
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &pd.mime_type);
-#else
+#if 0
if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {
if (!av_strcasecmp(mime_type, "audio/aacp")) {
*fmt = av_find_input_format("aac");
@@ -338,9 +335,7 @@ fail:
if (ret >= 0)
ret = ret2;
-#if FF_API_PROBE_MIME
av_free(pd.mime_type);
-#endif
return ret < 0 ? ret : score;
}