Commit 3f7ddc92 authored by diego's avatar diego

Fix wrong conditional, Snow decoding, not encoding, was SIMD-accelerated.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8116 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db05243a
...@@ -3037,7 +3037,7 @@ static void float_to_int16_sse(int16_t *dst, const float *src, int len){ ...@@ -3037,7 +3037,7 @@ static void float_to_int16_sse(int16_t *dst, const float *src, int len){
asm volatile("emms"); asm volatile("emms");
} }
#ifdef CONFIG_SNOW_ENCODER #ifdef CONFIG_SNOW_DECODER
extern void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width); extern void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width);
extern void ff_snow_horizontal_compose97i_mmx(DWTELEM *b, int width); extern void ff_snow_horizontal_compose97i_mmx(DWTELEM *b, int width);
extern void ff_snow_vertical_compose97i_sse2(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, DWTELEM *b3, DWTELEM *b4, DWTELEM *b5, int width); extern void ff_snow_vertical_compose97i_sse2(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, DWTELEM *b3, DWTELEM *b4, DWTELEM *b5, int width);
...@@ -3462,7 +3462,7 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) ...@@ -3462,7 +3462,7 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow; c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow;
} }
#ifdef CONFIG_SNOW_ENCODER #ifdef CONFIG_SNOW_DECODER
if(mm_flags & MM_SSE2){ if(mm_flags & MM_SSE2){
c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2; c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2;
c->vertical_compose97i = ff_snow_vertical_compose97i_sse2; c->vertical_compose97i = ff_snow_vertical_compose97i_sse2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment