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

git version control git at videolan.org
Thu Feb 26 21:11:18 CET 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Feb 26 12:07:56 2009 -0800| [11863ace50e918ec75f7c8e22907ebf1000820e1] | committer: Jason Garrett-Glaser 

Fix regression in r1085
Deblocking was very slightly incorrect with partitions=all.
Bug found by BugMaster.

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

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

diff --git a/common/frame.c b/common/frame.c
index de305d1..cc4b1b3 100644
--- a/common/frame.c
+++ b/common/frame.c
@@ -625,6 +625,7 @@ void x264_frame_deblock_row( x264_t *h, int mb_y )
     const int b_interlaced = h->sh.b_mbaff;
     const int mvy_limit = 4 >> b_interlaced;
     const int qp_thresh = 15 - X264_MIN(h->sh.i_alpha_c0_offset, h->sh.i_beta_offset) - X264_MAX(0, h->param.analyse.i_chroma_qp_offset);
+    const int no_sub8x8 = !(h->param.analyse.inter & X264_ANALYSE_PSUB8x8);
     int mb_x;
     int stridey   = h->fdec->i_stride[0];
     int stride2y  = stridey << b_interlaced;
@@ -642,7 +643,6 @@ void x264_frame_deblock_row( x264_t *h, int mb_y )
         const int b_8x8_transform = h->mb.mb_transform_size[mb_xy];
         const int i_qp = h->mb.qp[mb_xy];
         int i_edge_end = (h->mb.type[mb_xy] == P_SKIP) ? 1 : 4;
-        int no_sub8x8 = h->mb.type[mb_xy] != P_8x8 || !(h->param.analyse.inter & X264_ANALYSE_PSUB8x8);
         uint8_t *pixy = h->fdec->plane[0] + 16*mb_y*stridey  + 16*mb_x;
         uint8_t *pixu = h->fdec->plane[1] +  8*mb_y*strideuv +  8*mb_x;
         uint8_t *pixv = h->fdec->plane[2] +  8*mb_y*strideuv +  8*mb_x;



More information about the x264-devel mailing list