[FFmpeg-cvslog] r14282 - trunk/ffmpeg.c

michael subversion
Fri Jul 18 15:52:23 CEST 2008


Author: michael
Date: Fri Jul 18 15:52:23 2008
New Revision: 14282

Log:
Correcting displayed muxing overhead and video stream size.
Partially fixes issue348.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Fri Jul 18 15:52:23 2008
@@ -928,6 +928,7 @@ static void do_video_out(AVFormatContext
                     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 *
                             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;




More information about the ffmpeg-cvslog mailing list