From 33c859c142ef3f49b7a6227014ad92a680cf4d74 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 20 Jan 2014 13:59:06 +0100 Subject: lavf: ignore attachment streams for interleaving purposes Those streams should never get any packets by definition. --- libavformat/options.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavformat/options.c') diff --git a/libavformat/options.c b/libavformat/options.c index d99f04aab5..a5646df997 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -19,6 +19,7 @@ */ #include "avformat.h" #include "avio_internal.h" +#include "internal.h" #include "libavutil/opt.h" /** @@ -100,6 +101,13 @@ AVFormatContext *avformat_alloc_context(void) ic = av_malloc(sizeof(AVFormatContext)); if (!ic) return ic; avformat_get_context_defaults(ic); + + ic->internal = av_mallocz(sizeof(*ic->internal)); + if (!ic->internal) { + avformat_free_context(ic); + return NULL; + } + return ic; } -- cgit v1.2.3