aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorErik Slagter <erik@slagter.name>2009-12-08 20:01:46 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2009-12-08 20:01:46 +0000
commit25a42948c63e347391c98f3e95524244e7e7f628 (patch)
tree4c918c119f47ccc7202556d9a920ace310fcf9ad /libavcodec/libx264.c
parentf6586314193048073e7d8771e9114c4beb3917cc (diff)
downloadffmpeg-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.c1
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;