1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/fftools
Jan Ekström e760c12aee ffmpeg: prevent premature EOF in sub2video with nullptr AVSubtitles
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.
2018-04-01 13:56:31 +03:00
..
cmdutils.c cmdutils: use new APIs 2018-03-31 23:26:31 +01:00
cmdutils.h cmdutils: print supported codecs in show_help_bsf() 2018-03-22 00:15:05 -03:00
ffmpeg_cuvid.c
ffmpeg_filter.c ffmpeg_filter: use nb_threads=1 on unused filtergraph 2017-11-19 04:38:29 +01:00
ffmpeg_hw.c ffmpeg: Use codec hardware config to configure hwaccels 2017-11-26 21:41:19 +00:00
ffmpeg_opt.c ffmpeg: support dump bit stream filter options. 2018-03-16 02:09:59 +01:00
ffmpeg_qsv.c
ffmpeg_videotoolbox.c lavc: drop VDA 2017-10-23 11:56:15 +02:00
ffmpeg.c ffmpeg: prevent premature EOF in sub2video with nullptr AVSubtitles 2018-04-01 13:56:31 +03:00
ffmpeg.h ffmpeg: remove dead call to av_parser_change() 2018-03-23 22:03:22 -03:00
ffplay.c fftools, tools, examples: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
ffprobe.c ffprobe: fix infinite loop in subtitle decoding 2018-03-12 21:11:06 +01:00
Makefile Remove the ffserver program 2018-01-06 18:31:37 +00:00