[x264-devel] commit: Fix regression in r1453 (Jason Garrett-Glaser )

git version control git at videolan.org
Sat Feb 27 01:16:54 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Fri Feb 26 05:04:48 2010 -0800| [11446152ba7c79774d65f8556f2282ad838942d7] | committer: Jason Garrett-Glaser 

Fix regression in r1453
r1453 broke psy-trellis with --trellis 2

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

 encoder/analyse.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/encoder/analyse.c b/encoder/analyse.c
index 02fbf7c..98f3361 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -581,6 +581,10 @@ static void inline x264_psy_trellis_init( x264_t *h, int do_both_dct )
 /* Reset fenc satd scores cache for psy RD */
 static inline void x264_mb_init_fenc_cache( x264_t *h, int b_satd )
 {
+    if( h->param.analyse.i_trellis == 2 && h->mb.i_psy_trellis )
+        x264_psy_trellis_init( h, h->param.analyse.b_transform_8x8 );
+    if( !h->mb.i_psy_rd )
+        return;
     /* Writes beyond the end of the array, but not a problem since fenc_satd_cache is right after. */
     h->mc.memzero_aligned( h->mb.pic.fenc_hadamard_cache, sizeof(h->mb.pic.fenc_hadamard_cache) );
     if( b_satd )



More information about the x264-devel mailing list