[x264-devel] commit: Hotfix for high bit depth (Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Tue Dec 7 12:23:26 CET 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Dec 7 03:15:46 2010 -0800| [fdcf2aea4798546d4463916ee538e39b862b84ff] | committer: Jason Garrett-Glaser
Hotfix for high bit depth
Temporary fix for some unaligned access crashes.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=fdcf2aea4798546d4463916ee538e39b862b84ff
---
common/x86/predict-c.c | 10 +++++-----
encoder/slicetype.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/common/x86/predict-c.c b/common/x86/predict-c.c
index 829a191..994e05f 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 49d9e51..5c9f500 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 )
More information about the x264-devel
mailing list