Skip to content
Snippets Groups Projects
Commit bb99ae3a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

lavf: fix null pointer dereference in rdt

parent b3f4ff28
No related branches found
No related tags found
No related merge requests found
...@@ -607,6 +607,9 @@ static int init_input(AVFormatContext *s, const char *filename) ...@@ -607,6 +607,9 @@ static int init_input(AVFormatContext *s, const char *filename)
int ret; int ret;
AVProbeData pd = {filename, NULL, 0}; AVProbeData pd = {filename, NULL, 0};
if(s->iformat && !strlen(filename))
return 0;
if (s->pb) { if (s->pb) {
s->flags |= AVFMT_FLAG_CUSTOM_IO; s->flags |= AVFMT_FLAG_CUSTOM_IO;
if (!s->iformat) if (!s->iformat)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment