[FFmpeg-cvslog] avconv: update InputStream.pts in the streamcopy case.

Anton Khirnov git at videolan.org
Thu Dec 1 03:02:40 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Nov 28 11:47:02 2011 +0100| [91b412e786055aec3c5b6529a0c9ecc70fde8a6d] | committer: Anton Khirnov

avconv: update InputStream.pts in the streamcopy case.

This was broken in 2a651b719c309c5e2fc663a5a9d6ca36153ab98f.

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

 avconv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/avconv.c b/avconv.c
index 4c5498a..067678d 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1906,6 +1906,7 @@ static int output_packet(InputStream *ist,
     /* handle stream copy */
     if (!ist->decoding_needed) {
         rate_emu_sleep(ist);
+        ist->pts = ist->next_pts;
         switch (ist->st->codec->codec_type) {
         case AVMEDIA_TYPE_AUDIO:
             ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /



More information about the ffmpeg-cvslog mailing list