Skip to content

Commit

Permalink
avfilter/avf_showcqt: Mark arrays as static const
Browse files Browse the repository at this point in the history
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed Aug 12, 2020
1 parent efbe58c commit 2e0cf4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavfilter/avf_showcqt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,12 +1321,12 @@ static int query_formats(AVFilterContext *ctx)
AVFilterChannelLayouts *layouts = NULL;
AVFilterLink *inlink = ctx->inputs[0];
AVFilterLink *outlink = ctx->outputs[0];
enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_NONE };
enum AVPixelFormat pix_fmts[] = {
static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_NONE };
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV444P, AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE
};
int64_t channel_layouts[] = { AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_STEREO_DOWNMIX, -1 };
static const int64_t channel_layouts[] = { AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_STEREO_DOWNMIX, -1 };
int ret;

/* set input audio formats */
Expand Down

0 comments on commit 2e0cf4d

Please sign in to comment.