aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-07-25 19:36:43 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-07-25 19:36:43 +0000
commita03d59b7209171d8aa8099452c3096ae987eb8ef (patch)
treea4d5d02ed39a725fd44fd2d2a9221f849da4d20c /ffmpeg.c
parent977f6a9049c59995a76ebd15cdd572b4d79c3b51 (diff)
downloadffmpeg-a03d59b7209171d8aa8099452c3096ae987eb8ef.tar.gz
copy packet duration when doing a stream copy
Originally committed as revision 9796 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 5087b7262a..d09bf3274a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1237,6 +1237,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
dts= av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
opkt.dts= av_rescale_q(dts + input_files_ts_offset[ist->file_index], AV_TIME_BASE_Q, ost->st->time_base);
}
+ opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
opkt.flags= pkt->flags;
//FIXME remove the following 2 lines they shall be replaced by the bitstream filters