diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-12 16:22:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 18:49:35 +0100 |
commit | 838aa08d753f32d0f288a06eec59da6aad5f6f54 (patch) | |
tree | 6dd90da8be61092fc379b086d95fcd8304190f65 /libavfilter/x86 | |
parent | 1307c11ce6233867fa8c2da968c102c06496efea (diff) | |
download | ffmpeg-838aa08d753f32d0f288a06eec59da6aad5f6f54.tar.gz |
avfilter/vf_spp: support 10bit per sample
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 |