summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@gmail.com>2007-01-07 18:04:11 +0000
committerMåns Rullgård <mans@mansr.com>2007-01-07 18:04:11 +0000
commita5474d50c3e6e0661a3a68030f9205b4c03fc301 (patch)
tree0458dbbf5e150a4df99ca7484fd50015bd67a873 /libavcodec
parent40628be0ed20d671853d5756ac3a4b296d34b21a (diff)
enable bidirectional me with x264
patch by Robert Swain <robert =dot= swain =at= gmail =dot= com> Originally committed as revision 7422 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/x264.c b/libavcodec/x264.c
index b08678779a..c9df820f5d 100644
--- a/libavcodec/x264.c
+++ b/libavcodec/x264.c
@@ -225,6 +225,7 @@ X264_init(AVCodecContext *avctx)
x4->params.analyse.i_me_range = avctx->me_range;
x4->params.analyse.i_subpel_refine = avctx->me_subpel_quality;
+ x4->params.analyse.b_bidir_me = (avctx->bidir_refine > 0);
x4->params.analyse.b_bframe_rdo = (avctx->flags2 & CODEC_FLAG2_BRDO);
x4->params.analyse.b_mixed_references =
(avctx->flags2 & CODEC_FLAG2_MIXED_REFS);