[FFmpeg-cvslog] lavf: fix null pointer dereference in rdt

Michael Niedermayer git at videolan.org
Thu Nov 3 22:50:18 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  3 22:38:10 2011 +0100| [bb99ae3ae924c942a634bec7711ec7ee11c38eb9] | committer: Michael Niedermayer

lavf: fix null pointer dereference in rdt

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

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

 libavformat/utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 855992e..4399176 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -607,6 +607,9 @@ static int init_input(AVFormatContext *s, const char *filename)
     int ret;
     AVProbeData pd = {filename, NULL, 0};
 
+    if(s->iformat && !strlen(filename))
+        return 0;
+
     if (s->pb) {
         s->flags |= AVFMT_FLAG_CUSTOM_IO;
         if (!s->iformat)



More information about the ffmpeg-cvslog mailing list