avcodec/h264: add avx 8-bit 4:2:0 chroma h deblock/loop filter
[ffmpeg.git] / libavcodec / x86 / h264dsp_init.c
index 6794aa5..0b15471 100644 (file)
@@ -319,6 +319,9 @@ av_cold void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth,
 #endif
 
             c->h264_v_loop_filter_chroma       = ff_deblock_v_chroma_8_avx;
+            if (chroma_format_idc <= 1) {
+                c->h264_h_loop_filter_chroma       = ff_deblock_h_chroma_8_avx;
+            }
         }
     } else if (bit_depth == 10) {
         if (EXTERNAL_MMXEXT(cpu_flags)) {