diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-06-14 16:09:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-06-19 09:48:55 +0200 |
commit | a45b9d35b9852fd2c5ecdc5b43f48c82e6afddc7 (patch) | |
tree | 275c8c31d6e9ad332f1c22f258c4f065fee69e52 /fftools/ffmpeg.c | |
parent | 01897c1788b887e42a69072fc6516a73521bdcd6 (diff) | |
download | ffmpeg-a45b9d35b9852fd2c5ecdc5b43f48c82e6afddc7.tar.gz |
fftools/ffmpeg: move fix_sub_duration_heartbeat() to ffmpeg_dec
This way ffmpeg.c does not need to access InputStream.prev_sub and it
can be made private.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 4e6205e3cb..435e12a37b 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -768,24 +768,6 @@ int subtitle_wrap_frame(AVFrame *frame, AVSubtitle *subtitle, int copy) return 0; } -static int fix_sub_duration_heartbeat(InputStream *ist, int64_t signal_pts) -{ - int ret = AVERROR_BUG; - AVSubtitle *prev_subtitle = &ist->prev_sub.subtitle; - AVSubtitle subtitle; - - if (!ist->fix_sub_duration || !prev_subtitle->num_rects || - signal_pts <= prev_subtitle->pts) - return 0; - - if ((ret = copy_av_subtitle(&subtitle, prev_subtitle)) < 0) - return ret; - - subtitle.pts = signal_pts; - - return process_subtitle(ist, &subtitle); -} - int trigger_fix_sub_duration_heartbeat(OutputStream *ost, const AVPacket *pkt) { OutputFile *of = output_files[ost->file_index]; |