[x264-devel] commit: Fix VBV warning broken in r915 (Loren Merritt )
git version control
git at videolan.org
Wed May 27 11:33:10 CEST 2009
x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Mon May 25 19:16:05 2009 -0400| [79377d7309844d4e197ddf043fa9f115015fe286] | committer: Loren Merritt
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=79377d7309844d4e197ddf043fa9f115015fe286
---
encoder/encoder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index 76651c4..176443b 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -523,14 +523,14 @@ static int x264_validate_parameters( x264_t *h )
const x264_level_t *l = x264_levels;
if( h->param.i_level_idc < 0 )
{
+ int maxrate_bak = h->param.rc.i_vbv_max_bitrate;
if( h->param.rc.i_rc_method == X264_RC_ABR && h->param.rc.i_vbv_buffer_size <= 0 )
h->param.rc.i_vbv_max_bitrate = h->param.rc.i_bitrate * 2;
h->sps = h->sps_array;
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 )
- h->param.rc.i_vbv_max_bitrate = 0;
+ h->param.rc.i_vbv_max_bitrate = maxrate_bak;
}
else
{
More information about the x264-devel
mailing list