From 20899c54f03c413b225e8839a3c5318ab47abe55 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 10 Dec 2012 01:00:16 +0100 Subject: [PATCH] http/utils: rename "demuxer" to mime_type Signed-off-by: Michael Niedermayer --- libavformat/http.c | 6 +++--- libavformat/utils.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index 0d71726453..766cf8a34d 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -63,7 +63,7 @@ typedef struct { int post_datalen; int is_akamai; int rw_timeout; - char *demuxer; + char *mime_type; } HTTPContext; #define OFFSET(x) offsetof(HTTPContext, x) @@ -79,7 +79,7 @@ static const AVOption options[] = { {"multiple_requests", "use persistent connections", OFFSET(multiple_requests), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, D|E }, {"post_data", "custom HTTP post data", OFFSET(post_data), AV_OPT_TYPE_BINARY, .flags = D|E }, {"timeout", "timeout of socket i/o operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, D|E }, -{"demuxer", "", OFFSET(demuxer), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 }, +{"mime_type", "", OFFSET(mime_type), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 }, {NULL} }; #define HTTP_CLASS(flavor)\ @@ -358,7 +358,7 @@ static int process_line(URLContext *h, char *line, int line_count, } else if (!av_strcasecmp (tag, "Server") && !av_strcasecmp (p, "AkamaiGHost")) { s->is_akamai = 1; } else if (!av_strcasecmp (tag, "Content-Type") && p) { - av_free(s->demuxer); s->demuxer = av_strdup(p); + av_free(s->mime_type); s->mime_type = av_strdup(p); } } return 1; diff --git a/libavformat/utils.c b/libavformat/utils.c index 62d518798f..28961119fa 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -413,7 +413,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt, { AVProbeData pd = { filename ? filename : "", NULL, -offset }; unsigned char *buf = NULL; - uint8_t *demuxer_name; + uint8_t *mime_type; int ret = 0, probe_size, buf_offset = 0; if (!max_probe_size) { @@ -428,8 +428,8 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt, return AVERROR(EINVAL); } - if (!*fmt && pb && pb->av_class && av_opt_get(pb, "demuxer", AV_OPT_SEARCH_CHILDREN, &demuxer_name) >= 0 && demuxer_name) { - if (!av_strcasecmp(demuxer_name, "audio/aacp")) { + if (!*fmt && pb && 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"); } } -- 2.11.0