diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-08 07:56:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-08 08:01:05 +0100 |
commit | f070bf089454bf0e93f30343628b7761e9a68ddb (patch) | |
tree | b2f53674962ab9901f328278b10ca140bcf133e3 | |
parent | 4eea0cfc224d131db78b371703534e3f504c1862 (diff) | |
download | ffmpeg-f070bf089454bf0e93f30343628b7761e9a68ddb.tar.gz |
ffmpeg: Fix (next)_dts/pts init.
Based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |