avformat/nutenc: add mode that omits the index

When the index is not written, several data tables become unneeded,
reducing memory and cpu requirements.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-05-29 03:32:44 +02:00
parent df889be0a8
commit 82beb46e65
3 changed files with 7 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ typedef struct NUTContext {
AVRational *time_base;
struct AVTreeNode *syncpoints;
int sp_count;
int write_index;
int64_t max_pts;
AVRational *max_pts_tb;
#define NUT_BROADCAST 1 // use extended syncpoints