]> git.sesse.net Git - mlt/commitdiff
consumer_avformat.c: bugfix initial buffer size to prevent high quantization at beginning
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 28 Jun 2007 06:30:09 +0000 (06:30 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 28 Jun 2007 06:30:09 +0000 (06:30 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@993 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/consumer_avformat.c

index b9b322a871ee4ec87c5777aa17d1b1ef87725494..53fd6c187d9bc085b04880caa239c85f806ce4e9 100644 (file)
@@ -497,6 +497,7 @@ static AVStream *add_video_stream( mlt_consumer this, AVFormatContext *oc, int c
                c->rc_max_rate = mlt_properties_get_int( properties, "video_rc_max_rate" );
                c->rc_min_rate = mlt_properties_get_int( properties, "video_rc_min_rate" );
                c->rc_buffer_size = mlt_properties_get_int( properties, "video_rc_buffer_size" );
+               c->rc_initial_buffer_occupancy = c->rc_buffer_size*3/4;
                c->rc_buffer_aggressivity= mlt_properties_get_double( properties, "video_rc_buffer_aggressivity" );
                c->rc_initial_cplx= mlt_properties_get_double( properties, "video_rc_initial_cplx" );
                c->i_quant_factor = mlt_properties_get_double( properties, "video_i_qfactor" );