nutenc: keep track of the written syncpoint count

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-19 22:10:57 +02:00
parent 8f9941b160
commit d1ee2cf74a
2 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,8 @@ void ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts){
Syncpoint *sp= av_mallocz(sizeof(Syncpoint));
struct AVTreeNode *node= av_mallocz(av_tree_node_size);
nut->sp_count++;
sp->pos= pos;
sp->back_ptr= back_ptr;
sp->ts= ts;

View File

@ -101,6 +101,7 @@ typedef struct {
int header_count;
AVRational *time_base;
struct AVTreeNode *syncpoints;
int sp_count;
} NUTContext;
extern const AVCodecTag ff_nut_subtitle_tags[];