Mercurial > libavformat.hg
diff utils.c @ 3536:231f0db9672f libavformat
Allow NULL for read_header in AVInputFormat. See discussion in "[PATCH] allow
empty params for av_open_input_stream()".
author | rbultje |
---|---|
date | Thu, 03 Jul 2008 12:10:54 +0000 |
parents | 3fb9221edfe9 |
children | f02643ff8be2 |
line wrap: on
line diff
--- a/utils.c Wed Jul 02 10:26:23 2008 +0000 +++ b/utils.c Thu Jul 03 12:10:54 2008 +0000 @@ -394,9 +394,11 @@ 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);