Commit 67c1b5b0 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: remove unneeded pb check

Fixes CID747727
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b688a284
...@@ -428,7 +428,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt, ...@@ -428,7 +428,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
if (!*fmt && pb && 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) {
if (!av_strcasecmp(mime_type, "audio/aacp")) { if (!av_strcasecmp(mime_type, "audio/aacp")) {
*fmt = av_find_input_format("aac"); *fmt = av_find_input_format("aac");
} }
......
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