[FFmpeg-cvslog] concatdec: fix file_start_time calculation regression

Marton Balint git at videolan.org
Sat Oct 17 22:37:23 CEST 2015


ffmpeg | branch: release/2.8 | Marton Balint <cus at passwd.hu> | Tue Oct 13 22:56:00 2015 +0200| [e0e28dad9092d7d1ebb36283af1375927d377da4] | committer: Carl Eugen Hoyos

concatdec: fix file_start_time calculation regression

Fixes ticket #4924.

Found-by: Jaroslav Ć najdr <jsnajdr at gmail.com>
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit df239b76195156f179618ddb8b167d5bf1245247)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0e28dad9092d7d1ebb36283af1375927d377da4
---

 libavformat/concatdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 88b6dbe..be5cece 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -314,7 +314,7 @@ static int open_file(AVFormatContext *avf, unsigned fileno)
         file->start_time = !fileno ? 0 :
                            cat->files[fileno - 1].start_time +
                            cat->files[fileno - 1].duration;
-    file->file_start_time = (avf->start_time == AV_NOPTS_VALUE) ? 0 : avf->start_time;
+    file->file_start_time = (cat->avf->start_time == AV_NOPTS_VALUE) ? 0 : cat->avf->start_time;
     file->file_inpoint = (file->inpoint == AV_NOPTS_VALUE) ? file->file_start_time : file->inpoint;
     if ((ret = match_streams(avf)) < 0)
         return ret;



More information about the ffmpeg-cvslog mailing list