summaryrefslogtreecommitdiff
path: root/libavfilter/vf_qp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-27 17:36:59 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-01 15:25:48 +0100
commit2c6f532e0a29527347418d2d8c4ccfe57a6ace0e (patch)
treeed807102e82b1db61780ce0e1480dcf799d4e4b2 /libavfilter/vf_qp.c
parent15baa0c1acd21be99408e6782ae28d868b847b13 (diff)
Mark some pointers as const
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/vf_qp.c')
-rw-r--r--libavfilter/vf_qp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_qp.c b/libavfilter/vf_qp.c
index 306e8e4594..af46fe0ece 100644
--- a/libavfilter/vf_qp.c
+++ b/libavfilter/vf_qp.c
@@ -55,7 +55,7 @@ static int config_input(AVFilterLink *inlink)
int i;
int ret;
AVExpr *e = NULL;
- static const char *var_names[] = { "known", "qp", "x", "y", "w", "h", NULL };
+ static const char *const var_names[] = { "known", "qp", "x", "y", "w", "h", NULL };
if (!s->qp_expr_str)
return 0;
@@ -144,7 +144,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx);
int qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN;
double var_values[] = { !!sd_in, qp, x, y, s->qstride, s->h, 0};
- static const char *var_names[] = { "known", "qp", "x", "y", "w", "h", NULL };
+ static const char *const var_names[] = { "known", "qp", "x", "y", "w", "h", NULL };
double temp_val;
ret = av_expr_parse_and_eval(&temp_val, s->qp_expr_str,