aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-03 22:38:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-03 22:38:10 +0100
commitbb99ae3ae924c942a634bec7711ec7ee11c38eb9 (patch)
treebec23f80239c901eac85c260d4b90e0ba19dd9bf /libavformat
parentb3f4ff28767fd5a592e15711b0230662ec804c7d (diff)
downloadffmpeg-bb99ae3ae924c942a634bec7711ec7ee11c38eb9.tar.gz
lavf: fix null pointer dereference in rdt
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c3
1 files changed, 3 insertions, 0 deletions
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)