[FFmpeg-cvslog] avconv: do not use poorly defined and undocumented AVStream.pts

Anton Khirnov git at videolan.org
Mon May 19 15:36:40 CEST 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May 18 12:21:32 2014 +0200| [dc40d88625d7e402d58ac3f3df69fbf27aa31ea0] | committer: Anton Khirnov

avconv: do not use poorly defined and undocumented AVStream.pts

Use OutputStream.last_mux_dts as an approximation of 'current' output
time instead.

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

 avconv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avconv.c b/avconv.c
index 56b9baa..2cee09b 100644
--- a/avconv.c
+++ b/avconv.c
@@ -955,7 +955,7 @@ static void print_report(int is_last_report, int64_t timer_start)
             vid = 1;
         }
         /* compute min output value */
-        pts = (double)ost->st->pts.val * av_q2d(ost->st->time_base);
+        pts = (double)ost->last_mux_dts * av_q2d(ost->st->time_base);
         if ((pts < ti1) && (pts > 0))
             ti1 = pts;
     }



More information about the ffmpeg-cvslog mailing list