ffmpeg: use av_stream_get_end_pts()

Simplifies code and should correct timing values when -*sync drop is used

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-05-19 20:16:22 +02:00
parent 7f7080dc73
commit 1f359c8559
3 changed files with 3 additions and 9 deletions

View File

@@ -1152,7 +1152,6 @@ 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;
}