[FFmpeg-cvslog] ffmpeg/do_video_stats: fix used timebase

Michael Niedermayer git at videolan.org
Mon May 19 21:43:56 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 19 20:54:27 2014 +0200| [833ec9177d179d2dcbfa498a921b05da3f89bbe6] | committer: Michael Niedermayer

ffmpeg/do_video_stats: fix used timebase

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index 4c738ca..9df3b82 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1107,7 +1107,7 @@ static void do_video_stats(OutputStream *ost, int frame_size)
 
         fprintf(vstats_file,"f_size= %6d ", frame_size);
         /* compute pts value */
-        ti1 = ost->last_mux_dts_plus_duration * av_q2d(enc->time_base);
+        ti1 = ost->last_mux_dts_plus_duration * av_q2d(ost->st->time_base);
         if (ti1 < 0.01)
             ti1 = 0.01;
 



More information about the ffmpeg-cvslog mailing list