• 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
..
Makefile Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_cuvid.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_hw.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_qsv.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...