aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorNicolas George2012-08-09 11:44:17 +0200
committerNicolas George2012-08-14 11:17:45 +0200
commit0cad101ea10d01cb9f4780ebd915fb16dad19997 (patch)
tree7a4f655f210ebbded5acaa703163d4b108bf804c /ffmpeg.h
parent1bfa349a8d706424b5f2f379c439c11be21f4316 (diff)
ffmpeg: add an option to fix subtitles durations.
With this option, transcoding DVB subtitles becomes possible.
Diffstat (limited to 'ffmpeg.h')
-rw-r--r--ffmpeg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index 9b26103815..4539ad9478 100644
--- a/ffmpeg.h
+++ b/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;