summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-28 11:47:02 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-30 07:47:43 +0100
commit91b412e786055aec3c5b6529a0c9ecc70fde8a6d (patch)
tree17b8ad5f418a8de490b229e270222c5d4fa7a557 /avconv.c
parent464ccb01447b91717cf580b870e636514701ce4f (diff)
avconv: update InputStream.pts in the streamcopy case.
This was broken in 2a651b719c309c5e2fc663a5a9d6ca36153ab98f.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 4c5498ad93..067678d637 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) /