You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
ffmpeg: add an option to fix subtitles durations.
With this option, transcoding DVB subtitles becomes possible.
This commit is contained in:
10
ffmpeg.h
10
ffmpeg.h
@@ -158,6 +158,8 @@ typedef struct OptionsContext {
|
||||
int nb_copy_initial_nonkeyframes;
|
||||
SpecifierOpt *filters;
|
||||
int nb_filters;
|
||||
SpecifierOpt *fix_sub_duration;
|
||||
int nb_fix_sub_duration;
|
||||
} OptionsContext;
|
||||
|
||||
typedef struct InputFilter {
|
||||
@@ -223,6 +225,14 @@ typedef struct InputStream {
|
||||
int resample_channels;
|
||||
uint64_t resample_channel_layout;
|
||||
|
||||
int fix_sub_duration;
|
||||
struct { /* previous decoded subtitle and related variables */
|
||||
int64_t pts;
|
||||
int got_output;
|
||||
int ret;
|
||||
AVSubtitle subtitle;
|
||||
} prev_sub;
|
||||
|
||||
struct sub2video {
|
||||
int64_t last_pts;
|
||||
AVFilterBufferRef *ref;
|
||||
|
||||
Reference in New Issue
Block a user