[FFmpeg-cvslog] ffmpeg: Fix (next)_dts/pts init.

Michael Niedermayer git at videolan.org
Wed Feb 8 08:22:53 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 07:56:17 2012 +0100| [f070bf089454bf0e93f30343628b7761e9a68ddb] | committer: Michael Niedermayer

ffmpeg: Fix (next)_dts/pts init.

Based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffmpeg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index a6e3f24..e277eea 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2374,8 +2374,9 @@ static int init_input_stream(int ist_index, OutputStream *output_streams, int nb
         assert_avoptions(ist->opts);
     }
 
-    ist->pts = ist->st->avg_frame_rate.num ? - ist->st->codec->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0;
+    ist->dts = ist->st->avg_frame_rate.num ? - ist->st->codec->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0;
     ist->next_pts = AV_NOPTS_VALUE;
+    ist->next_dts = AV_NOPTS_VALUE;
     ist->is_start = 1;
 
     return 0;



More information about the ffmpeg-cvslog mailing list