Commit febf2638 authored by michael's avatar michael

muxing overhead statistic fix for stream copying


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3143 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c85f1c49
...@@ -1167,6 +1167,11 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1167,6 +1167,11 @@ static int output_packet(AVInputStream *ist, int ist_index,
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); ost->st->pts.val= av_rescale(ist->pts, os->pts_den, os->pts_num*AV_TIME_BASE);
if(ost->st->codec.codec_type == CODEC_TYPE_AUDIO)
audio_size += data_size;
else if (ost->st->codec.codec_type == CODEC_TYPE_VIDEO)
video_size += data_size;
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++;
ost->frame_number++; ost->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