Commit d1ee2cf7 authored by Michael Niedermayer's avatar Michael Niedermayer

nutenc: keep track of the written syncpoint count

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8f9941b1
......@@ -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;
......
......@@ -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[];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment