[FFmpeg-cvslog] ffmpeg: fix audio timestamps on stream copy with -ss

Michael Niedermayer git at videolan.org
Wed Nov 14 02:06:37 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 14 01:42:33 2012 +0100| [9406d6be55db25190b442ffdb2e6bc5d46904fb6] | committer: Michael Niedermayer

ffmpeg: fix audio timestamps on stream copy with -ss

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

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index effaf2f..8f10304 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);



More information about the ffmpeg-cvslog mailing list