summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-20 13:59:06 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-04 11:17:06 +0100
commit33c859c142ef3f49b7a6227014ad92a680cf4d74 (patch)
treec62a16cb8ed9b9645989605675eb4c810777a303 /libavformat/options.c
parent7b03b65bf0d02519c86750d2da33f413e11cf0c6 (diff)
lavf: ignore attachment streams for interleaving purposes
Those streams should never get any packets by definition.
Diffstat (limited to 'libavformat/options.c')
-rw-r--r--libavformat/options.c8
1 files changed, 8 insertions, 0 deletions
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;
}