Commit 9b10ae57 authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

avformat/format: Remove parameters from mime type before comparission for probing

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b8e4df46
...@@ -261,8 +261,13 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, ...@@ -261,8 +261,13 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
if (pb->av_class) { if (pb->av_class) {
uint8_t *mime_type_opt = NULL; uint8_t *mime_type_opt = NULL;
char* semi;
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type_opt); av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type_opt);
pd.mime_type = (const char *)mime_type_opt; pd.mime_type = (const char *)mime_type_opt;
semi = pd.mime_type?strchr(pd.mime_type, ';'):NULL;
if (semi) {
*semi='\0';
}
} }
#if 0 #if 0
if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) { if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment