Commit 54066a24 authored by rbultje's avatar rbultje

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

empty params for av_open_input_stream()".



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14059 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent edf39bf5
......@@ -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