[FFmpeg-devel] [PATCH] avformat: PTS/DTS timestamps get broken in concat

Jaroslav Ć najdr jsnajdr at gmail.com
Mon Oct 12 21:21:17 CEST 2015


This fixes trac #4924, most likely not 100% correct.
---
 libavformat/concatdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 832b7f4..1151b10 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -580,7 +580,7 @@ static int concat_read_packet(AVFormatContext
*avf, AVPacket *pkt)
            av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
            av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &st->time_base));

-    delta = av_rescale_q(cat->cur_file->start_time -
cat->cur_file->file_inpoint,
+    delta = av_rescale_q(cat->cur_file->file_start_time -
cat->cur_file->file_inpoint,
                          AV_TIME_BASE_Q,
                          cat->avf->streams[pkt->stream_index]->time_base);
     if (pkt->pts != AV_NOPTS_VALUE)
--


More information about the ffmpeg-devel mailing list