[FFmpeg-cvslog] r14059 - trunk/libavformat/utils.c
rbultje
subversion
Thu Jul 3 14:10:54 CEST 2008
Author: rbultje
Date: Thu Jul 3 14:10:54 2008
New Revision: 14059
Log:
Allow NULL for read_header in AVInputFormat. See discussion in "[PATCH] allow
empty params for av_open_input_stream()".
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Thu Jul 3 14:10:54 2008
@@ -394,9 +394,11 @@ int av_open_input_stream(AVFormatContext
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);
More information about the ffmpeg-cvslog
mailing list