]> git.sesse.net Git - ffmpeg/commitdiff
lavf: remove unneeded pb check
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Dec 2012 08:34:47 +0000 (09:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Dec 2012 08:34:47 +0000 (09:34 +0100)
Fixes CID747727
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index d3e1a9901e50d6eeb3829726eb323a7f3fe29ae2..596253b0f2fae0f242243c7738cad1d987b38fb8 100644 (file)
@@ -428,7 +428,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
         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")) {
             *fmt = av_find_input_format("aac");
         }