diff --git a/libavcodec/riscv/vp8dsp_init.c b/libavcodec/riscv/vp8dsp_init.c index 250fecb2f0..7ee17f331a 100644 --- a/libavcodec/riscv/vp8dsp_init.c +++ b/libavcodec/riscv/vp8dsp_init.c @@ -129,8 +129,8 @@ av_cold void ff_vp8dsp_init_riscv(VP8DSPContext *c) #if __riscv_xlen >= 64 if (flags & AV_CPU_FLAG_RVV_I64) c->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_rvv; -#endif c->vp8_idct_add = ff_vp8_idct_add_rvv; +#endif c->vp8_idct_dc_add = ff_vp8_idct_dc_add_rvv; c->vp8_idct_dc_add4y = ff_vp8_idct_dc_add4y_rvv; if (flags & AV_CPU_FLAG_RVV_I64) diff --git a/libavcodec/riscv/vp8dsp_rvv.S b/libavcodec/riscv/vp8dsp_rvv.S index a0548fbf0a..60c72f1b54 100644 --- a/libavcodec/riscv/vp8dsp_rvv.S +++ b/libavcodec/riscv/vp8dsp_rvv.S @@ -97,7 +97,6 @@ func ff_vp8_luma_dc_wht_rvv, zve64x vsse16.v v3, (t3), t0 ret endfunc -#endif func ff_vp8_idct_add_rvv, zve32x lpad 0 @@ -158,6 +157,7 @@ func ff_vp8_idct_add_rvv, zve32x vsub.vv v3, v4, v7 jr t0 endfunc +#endif func ff_vp8_idct_dc_add_rvv, zve32x lpad 0