]> git.sesse.net Git - ffmpeg/commit
ffmpeg_filter: initialize sub2video.end_pts together with last_pts
authorJan Ekström <jeebjp@gmail.com>
Wed, 20 Feb 2019 18:54:11 +0000 (20:54 +0200)
committerJan Ekström <jeebjp@gmail.com>
Thu, 21 Feb 2019 18:13:21 +0000 (20:13 +0200)
commit8cf757ee8d806c581ce453546c4e98cf746a442e
treecc5b76cfbc0e26721c010e0b87cf4a553f89ad77
parent7e4d3dbe18cec6f4ce0e9dfeb570d47af70af12c
ffmpeg_filter: initialize sub2video.end_pts together with last_pts

This way re-initializations properly update end_pts, enabling
sub2video_heartbeat to call sub2video_update as expected to re-init
the sub2video AVFrame's contents and to feed a frame into the filter
chain.

This then fixes memory usage ballooning due to framesync waiting
for secondary input in case of no actual subtitle samples being present
for a while in source after a re-init occurs.
fftools/ffmpeg_filter.c