Commit 812ba2df authored by michael's avatar michael

stream copy pts fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3025 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 907742e3
...@@ -1145,6 +1145,7 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1145,6 +1145,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
avcodec_get_frame_defaults(&avframe); avcodec_get_frame_defaults(&avframe);
ost->st->codec.coded_frame= &avframe; ost->st->codec.coded_frame= &avframe;
avframe.key_frame = pkt->flags & PKT_FLAG_KEY; 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); av_write_frame(os, ost->index, data_buf, data_size);
ost->st->codec.frame_number++; ost->st->codec.frame_number++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment