avfilter/textutils,vf_drawtext,qrencode: Constify function pointers

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-06-20 19:11:58 +02:00
parent 5a30b45c0f
commit ba457e9adb
4 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,7 @@ static int func_eval_expr_formatted(void *ctx, AVBPrint *bp, const char *functio
argv[1][0], positions);
}
static FFExpandTextFunction expand_text_functions[] = {
static const FFExpandTextFunction expand_text_functions[] = {
{ "expr", 1, 1, func_eval_expr },
{ "e", 1, 1, func_eval_expr },
{ "expr_formatted", 2, 3, func_eval_expr_formatted },

View File

@ -36,7 +36,7 @@ static int ff_expand_text_function_internal(FFExpandTextContext *expand_text, AV
char *name, unsigned argc, char **argv)
{
void *log_ctx = expand_text->log_ctx;
FFExpandTextFunction *functions = expand_text->functions;
const FFExpandTextFunction *functions = expand_text->functions;
unsigned i;
for (i = 0; i < expand_text->functions_nb; i++) {

View File

@ -74,7 +74,7 @@ typedef struct FFExpandTextContext {
* list of functions to use to expand sequences in the format
* FUNCTION_NAME{PARAMS}
*/
FFExpandTextFunction *functions;
const FFExpandTextFunction *functions;
/**
* number of functions

View File

@ -950,7 +950,7 @@ static int func_eval_expr_int_format(void *ctx, AVBPrint *bp, const char *functi
argv[1][0], positions);
}
static FFExpandTextFunction expand_text_functions[] = {
static const FFExpandTextFunction expand_text_functions[] = {
{ "e", 1, 1, func_eval_expr },
{ "eif", 2, 3, func_eval_expr_int_format },
{ "expr", 1, 1, func_eval_expr },