diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-02-23 01:48:08 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2020-03-16 19:35:17 +0200 |
commit | 7ba3ea212fc054ba48618bf87018269fee5504ce (patch) | |
tree | 2c70339a4da19c9b67d9e647613b4a5590695951 /fftools/ffmpeg.h | |
parent | 39fbd0631407f6ce7575699248cb05057203af58 (diff) | |
download | ffmpeg-7ba3ea212fc054ba48618bf87018269fee5504ce.tar.gz |
ffmpeg: explicitly handle sub2video subpicture initialization
Each time the sub2video structure is initialized, the sub2video
subpicture is initialized together with the first received heartbeat.
The heartbeat's PTS is utilized as the subpicture start time.
Additionally, add some documentation on the stages.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index c0b8eb599f..fbaae15377 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -348,6 +348,7 @@ typedef struct InputStream { AVFifoBuffer *sub_queue; ///< queue of AVSubtitle* before filter init AVFrame *frame; int w, h; + unsigned int initialize; ///< marks if sub2video_update should force an initialization } sub2video; int dr1; @@ -645,7 +646,7 @@ int filtergraph_is_simple(FilterGraph *fg); int init_simple_filtergraph(InputStream *ist, OutputStream *ost); int init_complex_filtergraph(FilterGraph *fg); -void sub2video_update(InputStream *ist, AVSubtitle *sub); +void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub); int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame); |