changeset 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 5e0191d9e713
children f02643ff8be2
files utils.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);