mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
nutenc: keep track of the written syncpoint count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8f9941b160
commit
d1ee2cf74a
@ -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[];
|
||||
|
Loading…
Reference in New Issue
Block a user