[x264-devel] commit: Fix VBV warning broken in r915 (Jason Garrett-Glaser )

git version control git at videolan.org
Wed May 27 02:17:29 CEST 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon May 25 19:16:05 2009 -0400| [1863544b13a2eba921542c6c67dd26a8a10d0f7f] | committer: Jason Garrett-Glaser 

Fix VBV warning broken in r915
x264 will now correctly warn about maxrate specified without bufsize even when a level is not set.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=1863544b13a2eba921542c6c67dd26a8a10d0f7f
---

 encoder/encoder.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 76651c4..cd7e6b7 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -529,8 +529,11 @@ static int x264_validate_parameters( x264_t *h )
             x264_sps_init( h->sps, h->param.i_sps_id, &h->param );
             do h->param.i_level_idc = l->level_idc;
                 while( l[1].level_idc && x264_validate_levels( h, 0 ) && l++ );
-            if( h->param.rc.i_vbv_buffer_size <= 0 )
+            if( h->param.rc.i_vbv_max_bitrate && h->param.rc.i_vbv_buffer_size <= 0 )
+            {
+                x264_log(h, X264_LOG_WARNING, "VBV maxrate specified, but no bufsize.\n");
                 h->param.rc.i_vbv_max_bitrate = 0;
+            }
         }
         else
         {



More information about the x264-devel mailing list