diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-17 03:34:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-17 03:34:17 +0000 |
commit | bf17ff617b6c411bcbb92272144f3530858d7c53 (patch) | |
tree | b46468bbf5c663b4653cb360a3edc7348bd115cd /ffmpeg.c | |
parent | da63aac58518e97ed682846004682d3abcfc0d64 (diff) | |
download | ffmpeg-bf17ff617b6c411bcbb92272144f3530858d7c53.tar.gz |
stream copy pts fix
Originally committed as revision 3025 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1145,7 +1145,8 @@ static int output_packet(AVInputStream *ist, int ist_index, avcodec_get_frame_defaults(&avframe); ost->st->codec.coded_frame= &avframe; avframe.key_frame = pkt->flags & PKT_FLAG_KEY; - + ost->st->pts.val= av_rescale(ist->pts, os->pts_den, os->pts_num*AV_TIME_BASE); + av_write_frame(os, ost->index, data_buf, data_size); ost->st->codec.frame_number++; ost->frame_number++; |