Commit e145ce20 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Allow NULL for read_header in AVInputFormat. See discussion in "[PATCH] allow

empty params for av_open_input_stream()".

Originally committed as revision 14059 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4f0689b5
......@@ -394,9 +394,11 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
ic->priv_data = NULL;
}
if (ic->iformat->read_header) {
err = ic->iformat->read_header(ic, ap);
if (err < 0)
goto fail;
}
if (pb && !ic->data_offset)
ic->data_offset = url_ftell(ic->pb);
......
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