Browse Source

stream copy pts fix

Originally committed as revision 3025 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
bf17ff617b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffmpeg.c

+ 2
- 1
ffmpeg.c View File

@@ -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++;


Loading…
Cancel
Save