Commit bb99ae3a authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: fix null pointer dereference in rdt

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b3f4ff28
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment