[x264-devel] Allow WEIGHTP_FAKE in interlaced mode

Jason Garrett-Glaser git at videolan.org
Mon Feb 7 06:31:32 CET 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Sat Feb  5 15:02:34 2011 -0800| [16868ec528909a80766a9a737e6ce3649521d9c3] | committer: Jason Garrett-Glaser

Allow WEIGHTP_FAKE in interlaced mode
It seems to work fine as-is even though real weightp doesn't support interlacing yet.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=16868ec528909a80766a9a737e6ce3649521d9c3
---

 encoder/encoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 3ff5897..782d34f 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -774,7 +774,7 @@ static int x264_validate_parameters( x264_t *h )
     }
 
     h->param.analyse.i_weighted_pred = x264_clip3( h->param.analyse.i_weighted_pred, X264_WEIGHTP_NONE, X264_WEIGHTP_SMART );
-    if( !h->param.analyse.i_weighted_pred && h->param.rc.b_mb_tree && h->param.analyse.b_psy && !h->param.b_interlaced )
+    if( !h->param.analyse.i_weighted_pred && h->param.rc.b_mb_tree && h->param.analyse.b_psy )
         h->param.analyse.i_weighted_pred = X264_WEIGHTP_FAKE;
 
     if( h->i_thread_frames > 1 )



More information about the x264-devel mailing list