]> git.sesse.net Git - x264/blobdiff - encoder/analyse.c
typo in r296.
[x264] / encoder / analyse.c
index 46b16e321e5134235cb48b3a5be0ae1d72d8c663..f21c32d3fa836172a9a7785dadfbe9ced882f9d3 100644 (file)
@@ -536,7 +536,7 @@ static void x264_mb_analyse_intra( x264_t *h, x264_mb_analysis_t *a, int i_cost_
             i_best = COST_MAX;
             predict_4x4_mode_available( h->mb.i_neighbour4[idx], predict_mode, &i_max );
 
-            if( (h->mb.i_neighbour4[i] & (MB_TOPRIGHT|MB_TOP)) == MB_TOP )
+            if( (h->mb.i_neighbour4[idx] & (MB_TOPRIGHT|MB_TOP)) == MB_TOP )
                 /* emulate missing topright samples */
                 *(uint32_t*) &p_dst_by[4 - i_stride] = p_dst_by[3 - i_stride] * 0x01010101U;