[libav-commits] avconv: update InputStream.pts in the streamcopy case.

Anton Khirnov git at libav.org
Wed Nov 30 07:47:54 CET 2011


Module: libav
Branch: master
Commit: 91b412e786055aec3c5b6529a0c9ecc70fde8a6d

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Mon Nov 28 11:47:02 2011 +0100

avconv: update InputStream.pts in the streamcopy case.

This was broken in 2a651b719c309c5e2fc663a5a9d6ca36153ab98f.

---

 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 libav-commits mailing list