[SCM] libav/experimental: muxing overhead statistic fix for stream copying
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:40:25 UTC 2013
The following commit has been merged in the experimental branch:
commit c7baf14bd4f56eed6d1a9936fe38932d884eef2f
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Thu May 20 16:05:47 2004 +0000
muxing overhead statistic fix for stream copying
Originally committed as revision 3143 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffmpeg.c b/ffmpeg.c
index 5d211a2..f079f60 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1167,6 +1167,11 @@ static int output_packet(AVInputStream *ist, int ist_index,
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);
+ 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);
ost->st->codec.frame_number++;
ost->frame_number++;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list