diff options
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/vf_spp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/x86/vf_spp.c b/libavfilter/x86/vf_spp.c index 862190b928..016f526a6d 100644 --- a/libavfilter/x86/vf_spp.c +++ b/libavfilter/x86/vf_spp.c @@ -224,9 +224,11 @@ av_cold void ff_spp_init_x86(SPPContext *s) if (cpu_flags & AV_CPU_FLAG_MMX) { s->store_slice = store_slice_mmx; - switch (s->mode) { - case 0: s->requantize = hardthresh_mmx; break; - case 1: s->requantize = softthresh_mmx; break; + if (av_get_int(s->dct, "bits_per_sample", NULL) <= 8) { + switch (s->mode) { + case 0: s->requantize = hardthresh_mmx; break; + case 1: s->requantize = softthresh_mmx; break; + } } } #endif |