diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-08-20 15:32:00 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-29 13:07:37 +0200 |
commit | e998b56362c711701b3daa34e7b956e7126336f4 (patch) | |
tree | 3720d4a5b6e915b8aa21ca733e9cfbd6c32e5601 /libavcodec/x86/mpegvideo.c | |
parent | 6369ba3c9cc74becfaad2a8882dff3dd3e7ae3c0 (diff) | |
download | ffmpeg-e998b56362c711701b3daa34e7b956e7126336f4.tar.gz |
x86: avcodec: Consistently structure CPU extension initialization
Diffstat (limited to 'libavcodec/x86/mpegvideo.c')
-rw-r--r-- | libavcodec/x86/mpegvideo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/x86/mpegvideo.c b/libavcodec/x86/mpegvideo.c index caf1e3a96d..07fd1e538c 100644 --- a/libavcodec/x86/mpegvideo.c +++ b/libavcodec/x86/mpegvideo.c @@ -568,11 +568,10 @@ av_cold void ff_MPV_common_init_x86(MpegEncContext *s) if(!(s->flags & CODEC_FLAG_BITEXACT)) s->dct_unquantize_mpeg2_intra = dct_unquantize_mpeg2_intra_mmx; s->dct_unquantize_mpeg2_inter = dct_unquantize_mpeg2_inter_mmx; - if (INLINE_SSE2(cpu_flags)) { - s->denoise_dct= denoise_dct_sse2; - } else { - s->denoise_dct= denoise_dct_mmx; - } + s->denoise_dct = denoise_dct_mmx; + } + if (INLINE_SSE2(cpu_flags)) { + s->denoise_dct = denoise_dct_sse2; } #endif /* HAVE_INLINE_ASM */ } |