[x264-devel] commit: Fix stupid regression in interlaced in r1430 (Jason Garrett-Glaser )

git version control git at videolan.org
Tue Feb 23 11:05:34 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Feb 23 01:44:44 2010 -0800| [482646af573829582403317f0cde0a46a4b48ab2] | committer: Jason Garrett-Glaser 

Fix stupid regression in interlaced in r1430
With ref > 8 or b-pyramid, an array over-read could cause slightly incorrect B-frames.

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

 common/common.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/common.h b/common/common.h
index e2e8fac..906af51 100644
--- a/common/common.h
+++ b/common/common.h
@@ -654,8 +654,8 @@ struct x264_t
         int     i_chroma_lambda2_offset;
 
         /* B_direct and weighted prediction */
-        int16_t dist_scale_factor_buf[2][16][2];
-        int16_t (*dist_scale_factor)[2];
+        int16_t dist_scale_factor_buf[2][32][4];
+        int16_t (*dist_scale_factor)[4];
         int8_t bipred_weight_buf[2][32][4];
         int8_t (*bipred_weight)[4];
         /* maps fref1[0]'s ref indices into the current list0 */



More information about the x264-devel mailing list