avcodec/me_cmp: Constify ff_set_cmp()

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-05-12 18:33:37 +02:00
parent bbd355355d
commit 1367ef198a
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ static int zero_cmp(MpegEncContext *s, const uint8_t *a, const uint8_t *b,
return 0;
}
int ff_set_cmp(MECmpContext *c, me_cmp_func *cmp, int type)
int ff_set_cmp(const MECmpContext *c, me_cmp_func *cmp, int type)
{
int ret = 0;
int i;

View File

@ -90,7 +90,7 @@ void ff_me_cmp_init_riscv(MECmpContext *c, AVCodecContext *avctx);
void ff_me_cmp_init_x86(MECmpContext *c, AVCodecContext *avctx);
void ff_me_cmp_init_mips(MECmpContext *c, AVCodecContext *avctx);
int ff_set_cmp(MECmpContext *c, me_cmp_func *cmp, int type);
int ff_set_cmp(const MECmpContext *c, me_cmp_func *cmp, int type);
void ff_dsputil_init_dwt(MECmpContext *c);