Commit 2f69428a authored by michael's avatar michael

Correcting displayed muxing overhead and video stream size.

Partially fixes issue348.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14282 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 80038126
...@@ -928,6 +928,7 @@ static void do_video_out(AVFormatContext *s, ...@@ -928,6 +928,7 @@ static void do_video_out(AVFormatContext *s,
pkt.flags |= PKT_FLAG_KEY; pkt.flags |= PKT_FLAG_KEY;
write_frame(s, &pkt, ost->st->codec, bitstream_filters[ost->file_index][pkt.stream_index]); write_frame(s, &pkt, ost->st->codec, bitstream_filters[ost->file_index][pkt.stream_index]);
*frame_size = ret; *frame_size = ret;
video_size += ret;
//fprintf(stderr,"\nFrame: %3d %3d size: %5d type: %d", //fprintf(stderr,"\nFrame: %3d %3d size: %5d type: %d",
// enc->frame_number-1, enc->real_pict_num, ret, // enc->frame_number-1, enc->real_pict_num, ret,
// enc->pict_type); // enc->pict_type);
...@@ -1301,7 +1302,6 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1301,7 +1302,6 @@ static int output_packet(AVInputStream *ist, int ist_index,
break; break;
case CODEC_TYPE_VIDEO: case CODEC_TYPE_VIDEO:
do_video_out(os, ost, ist, &picture, &frame_size); do_video_out(os, ost, ist, &picture, &frame_size);
video_size += frame_size;
if (vstats_filename && frame_size) if (vstats_filename && frame_size)
do_video_stats(os, ost, frame_size); do_video_stats(os, ost, frame_size);
break; break;
......
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