From: Fiona Glaser Date: Tue, 7 Dec 2010 11:15:46 +0000 (-0800) Subject: Hotfix for high bit depth X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=972de279b363210fdf4858e3efe7203e979b6e36;p=libx264 Hotfix for high bit depth Temporary fix for some unaligned access crashes. --- diff --git a/common/x86/predict-c.c b/common/x86/predict-c.c index 3560a02f..64496ea6 100644 --- a/common/x86/predict-c.c +++ b/common/x86/predict-c.c @@ -505,14 +505,14 @@ void x264_predict_4x4_init_mmx( int cpu, x264_predict_t pf[12] ) #if HIGH_BIT_DEPTH if( !(cpu&X264_CPU_SSE2) ) return; - pf[I_PRED_4x4_DDL] = x264_predict_4x4_ddl_sse2; +// pf[I_PRED_4x4_DDL] = x264_predict_4x4_ddl_sse2; pf[I_PRED_4x4_HU] = x264_predict_4x4_hu_sse2; - pf[I_PRED_4x4_VL] = x264_predict_4x4_vl_sse2; +// pf[I_PRED_4x4_VL] = x264_predict_4x4_vl_sse2; if( !(cpu&X264_CPU_SSSE3) ) return; - pf[I_PRED_4x4_DDR] = x264_predict_4x4_ddr_ssse3; - pf[I_PRED_4x4_VR] = x264_predict_4x4_vr_ssse3; - pf[I_PRED_4x4_HD] = x264_predict_4x4_hd_ssse3; +// pf[I_PRED_4x4_DDR] = x264_predict_4x4_ddr_ssse3; +// pf[I_PRED_4x4_VR] = x264_predict_4x4_vr_ssse3; +// pf[I_PRED_4x4_HD] = x264_predict_4x4_hd_ssse3; #else pf[I_PRED_4x4_VR] = x264_predict_4x4_vr_mmxext; pf[I_PRED_4x4_DDR] = x264_predict_4x4_ddr_mmxext; diff --git a/encoder/slicetype.c b/encoder/slicetype.c index 92efc789..894c9f4c 100644 --- a/encoder/slicetype.c +++ b/encoder/slicetype.c @@ -191,7 +191,7 @@ static NOINLINE unsigned int x264_weight_cost_chroma( x264_t *h, x264_frame_t *f pixel *src = ref + i_offset; ALIGNED_ARRAY_16( pixel, buf, [8*8] ); int pixoff = 0; - ALIGNED_16( static pixel flat [8] ) = {0}; + ALIGNED_16( static pixel flat[9] ) = {0,0,0,0,0,0,0,0,1}; //hack for win32 if( w ) { for( int y = 0; y < i_lines; y += 8, pixoff = y*i_stride )