[FFmpeg-cvslog] lavf: remove unneeded pb check

Michael Niedermayer git at videolan.org
Tue Dec 11 09:39:29 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 11 09:34:47 2012 +0100| [67c1b5b0269d3d5a505dba0db6f985ca2990f2aa] | committer: Michael Niedermayer

lavf: remove unneeded pb check

Fixes CID747727
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=67c1b5b0269d3d5a505dba0db6f985ca2990f2aa
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index d3e1a99..596253b 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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");
         }



More information about the ffmpeg-cvslog mailing list