lavf: ignore attachment streams for interleaving purposes

Those streams should never get any packets by definition.
This commit is contained in:
Anton Khirnov
2014-01-20 13:59:06 +01:00
parent 7b03b65bf0
commit 33c859c142
5 changed files with 28 additions and 1 deletions

View File

@@ -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;
}