aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/dsputil_init.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-15 20:41:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-15 20:41:08 +0100
commit6391dec82a975d9a170773eacb80f1b7b05b7400 (patch)
tree2c8480a1bda99387545c9b3bd34398664c49a3e0 /libavcodec/x86/dsputil_init.c
parent221dc52d03e113bd394ea3c6746d4b5506bd7dd1 (diff)
parentaab40bbfd5a7df1489500656a95448a0c53c1bd5 (diff)
downloadffmpeg-6391dec82a975d9a170773eacb80f1b7b05b7400.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: x86: dsputil: Simplify xvmc deprecation conditional Conflicts: libavcodec/x86/dsputil_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/dsputil_init.c')
-rw-r--r--libavcodec/x86/dsputil_init.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavcodec/x86/dsputil_init.c b/libavcodec/x86/dsputil_init.c
index 36fa38fb2a..e0b40410a7 100644
--- a/libavcodec/x86/dsputil_init.c
+++ b/libavcodec/x86/dsputil_init.c
@@ -27,6 +27,7 @@
#include "libavutil/x86/cpu.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/simple_idct.h"
+#include "libavcodec/version.h"
#include "dsputil_x86.h"
#include "idct_xvid.h"
@@ -582,15 +583,16 @@ static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx,
#if HAVE_SSE_INLINE
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
+ c->vector_clipf = ff_vector_clipf_sse;
+
+ /* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */
+ if (CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb)
+ return;
+
if (!high_bit_depth) {
- if (!(CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb)) {
- /* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */
c->clear_block = ff_clear_block_sse;
c->clear_blocks = ff_clear_blocks_sse;
- }
}
-
- c->vector_clipf = ff_vector_clipf_sse;
#endif /* HAVE_SSE_INLINE */
#if HAVE_YASM