Commit 9406d6be authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: fix audio timestamps on stream copy with -ss

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2f74f8d7
......@@ -1367,7 +1367,7 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
duration = ist->st->codec->frame_size;
opkt.dts = opkt.pts = av_rescale_delta(ist->st->time_base, pkt->dts,
(AVRational){1, ist->st->codec->sample_rate}, duration, &ist->filter_in_rescale_delta_last,
ost->st->time_base);
ost->st->time_base) - ost_tb_start_time;;
}
opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment