[x264-devel] Interface: if vbv-maxrate < bitrate, set bitrate = vbv-maxrate
Jason Garrett-Glaser
git at videolan.org
Thu Jul 4 03:01:41 CEST 2013
x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Thu Jun 27 08:29:06 2013 -0700| [e4ac506d2cbeceb7d1cbe02e2e69dac6ac57975a] | committer: Jason Garrett-Glaser
Interface: if vbv-maxrate < bitrate, set bitrate = vbv-maxrate
This probably makes more sense to the user than setting vbv-maxrate = bitrate,
as before.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=e4ac506d2cbeceb7d1cbe02e2e69dac6ac57975a
---
encoder/encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index a29207f..a1d1ea2 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -696,7 +696,7 @@ static int x264_validate_parameters( x264_t *h, int b_open )
h->param.rc.i_rc_method == X264_RC_ABR )
{
x264_log( h, X264_LOG_WARNING, "max bitrate less than average bitrate, assuming CBR\n" );
- h->param.rc.i_vbv_max_bitrate = h->param.rc.i_bitrate;
+ h->param.rc.i_bitrate = h->param.rc.i_vbv_max_bitrate;
}
}
else if( h->param.rc.i_vbv_max_bitrate )
More information about the x264-devel
mailing list