summaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-01 04:59:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-01 04:59:03 +0100
commit13131685f18728ba7f1d791b75dd2b4587df3ab1 (patch)
treee8bb4bbb9a6d0960155686dbb89c9114efa755fd /ffmpeg_opt.c
parent2eb2e1798eeea155399197aeb0d8ed9f17d1eb0b (diff)
downloadffmpeg-streaming-13131685f18728ba7f1d791b75dd2b4587df3ab1.zip
ffmpeg-streaming-13131685f18728ba7f1d791b75dd2b4587df3ab1.tar.gz
ffmpeg: avoid negative timestamps for DVD
dvdauthor cannot handle files with ts wraps Fixes ticket383 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index fcd6048..cd65065 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1922,6 +1922,8 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
av_dict_set(&o->g->codec_opts, "b:a", "448000", 0);
parse_option(o, "ar", "48000", options);
+ av_dict_set(&o->g->format_opts, "avoid_negative_ts", "1", 0);
+
} else if (!strncmp(arg, "dv", 2)) {
parse_option(o, "f", "dv", options);
OpenPOWER on IntegriCloud