From bb99ae3ae924c942a634bec7711ec7ee11c38eb9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Nov 2011 22:38:10 +0100 Subject: [PATCH] lavf: fix null pointer dereference in rdt Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 855992e2aa..43991765df 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)