summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-18 13:52:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-18 13:52:23 +0000
commit44eb047a5bdb06511c334e67a309d69509855453 (patch)
treebe8f78ad59a558e0fe54519fec8274e7d8ebdcfc /ffmpeg.c
parente0168e3b9c4d7366c10ce8a78406b6270b511390 (diff)
Correcting displayed muxing overhead and video stream size.
Partially fixes issue348. Originally committed as revision 14282 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 8b479bb60b..e1f8e6e5e2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -928,6 +928,7 @@ static void do_video_out(AVFormatContext *s,
pkt.flags |= PKT_FLAG_KEY;
write_frame(s, &pkt, ost->st->codec, bitstream_filters[ost->file_index][pkt.stream_index]);
*frame_size = ret;
+ video_size += ret;
//fprintf(stderr,"\nFrame: %3d %3d size: %5d type: %d",
// enc->frame_number-1, enc->real_pict_num, ret,
// enc->pict_type);
@@ -1301,7 +1302,6 @@ static int output_packet(AVInputStream *ist, int ist_index,
break;
case CODEC_TYPE_VIDEO:
do_video_out(os, ost, ist, &picture, &frame_size);
- video_size += frame_size;
if (vstats_filename && frame_size)
do_video_stats(os, ost, frame_size);
break;