• Jan Ekström's avatar
    ffmpeg: prevent premature EOF in sub2video with nullptr AVSubtitles · e760c12a
    Jan Ekström authored
    With certain types of input and the filter chain getting re-initialized
    or re-configured, multiple nullptr AVSubtitles can get pushed into
    sub2video_update() in a row from sub2video_heartbeat.
    
    This causes end_pts, and on the next round pts, to become INT64_MAX,
    latter of which signals EOF in framesync, leading to complete loss of
    subtitles from that point on.
    
    Thus, check that the sub2video.end_pts is smaller than INT64_MAX
    in a similar fashion to sub2video_flush before sending out the
    nullptr AVSubtitle. This keeps premature EOFs from happening in
    framesync and the subtitle overlay is kept past the filter chain
    re-initializations/configurations.
    e760c12a
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...