[x264-devel] commit: Fix rc-lookahead in encoding options SEI in 2-pass with VBV ( Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Fri May 21 10:33:12 CEST 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue May 18 11:53:32 2010 -0700| [ff0fede90cdac017457a77d026476a36d04cacd4] | committer: Jason Garrett-Glaser
Fix rc-lookahead in encoding options SEI in 2-pass with VBV
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ff0fede90cdac017457a77d026476a36d04cacd4
---
encoder/ratecontrol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 7f18c7f..efa872c 100644
--- a/encoder/ratecontrol.c
+++ b/encoder/ratecontrol.c
@@ -674,7 +674,7 @@ int x264_ratecontrol_new( x264_t *h )
return -1;
}
- if( h->param.rc.b_mb_tree && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) )
+ if( (h->param.rc.b_mb_tree || h->param.rc.i_vbv_buffer_size) && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) )
h->param.rc.i_lookahead = i;
}
More information about the x264-devel
mailing list