diff options
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 10c3a4a..15a4a5e 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -465,6 +465,12 @@ int av_open_input_stream(AVFormatContext **ic_ptr, { int err; AVFormatContext *ic; + AVFormatParameters default_ap; + + if(!ap){ + ap=&default_ap; + memset(ap, 0, sizeof(default_ap)); + } ic = av_alloc_format_context(); if (!ic) { |