diff options
author | Erik Slagter <erik@slagter.name> | 2009-12-08 20:01:46 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2009-12-08 20:01:46 +0000 |
commit | 25a42948c63e347391c98f3e95524244e7e7f628 (patch) | |
tree | 4c918c119f47ccc7202556d9a920ace310fcf9ad /libavcodec/libx264.c | |
parent | f6586314193048073e7d8771e9114c4beb3917cc (diff) | |
download | ffmpeg-25a42948c63e347391c98f3e95524244e7e7f628.tar.gz |
Add MBtree support for libx264
Patch by Erik Slagter
Originally committed as revision 20774 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 05c29805db..1fec3eded1 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -266,6 +266,7 @@ static av_cold int X264_init(AVCodecContext *avctx) } else x4->params.rc.f_vbv_buffer_init = 0.9; + x4->params.rc.b_mb_tree = !!(avctx->flags2 & CODEC_FLAG2_MBTREE); x4->params.rc.f_ip_factor = 1 / fabs(avctx->i_quant_factor); x4->params.rc.f_pb_factor = avctx->b_quant_factor; x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset; |