]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/x86/vf_convolution_init: there is asm only for 8bit depth
authorPaul B Mahol <onemda@gmail.com>
Tue, 15 Sep 2020 06:10:47 +0000 (08:10 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 15 Sep 2020 06:13:04 +0000 (08:13 +0200)
libavfilter/x86/vf_convolution_init.c

index 51432406ed0542a22fe0c9a55096748f76d63ef7..45df576aa7e792aafde5b895e1294cdded118d6b 100644 (file)
@@ -36,7 +36,7 @@ av_cold void ff_convolution_init_x86(ConvolutionContext *s)
     int cpu_flags = av_get_cpu_flags();
     for (i = 0; i < 4; i++) {
         if (s->mode[i] == MATRIX_SQUARE) {
-            if (s->matrix_length[i] == 9) {
+            if (s->matrix_length[i] == 9 && s->depth == 8) {
                 if (EXTERNAL_SSE4(cpu_flags))
                     s->filter[i] = ff_filter_3x3_sse4;
             }