From 87f5ede6b52e7d49c823bc070335821b489903e0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 19 May 2014 15:28:19 +0200 Subject: ffmpeg: add last_mux_dts_plus_duration Fixes 1 frame error in the duration and derived values, introduced by not using AVStream.pts in the previous commit Signed-off-by: Michael Niedermayer --- ffmpeg_opt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ffmpeg_opt.c') diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index 8e3873c807..6f45785192 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -1152,6 +1152,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e input_streams[source_index]->st->discard = AVDISCARD_NONE; } ost->last_mux_dts = AV_NOPTS_VALUE; + ost->last_mux_dts_plus_duration = AV_NOPTS_VALUE; return ost; } -- cgit v1.2.3