]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_channelmap.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / af_channelmap.c
index 1f79f89ce3de29d05bdbde74491d9b02c2804272..3cdf8b2bd87f18de0bb2e290f97d72e794c57407 100644 (file)
@@ -287,11 +287,11 @@ static int channelmap_query_formats(AVFilterContext *ctx)
         (ret = ff_set_common_samplerates (ctx             , ff_all_samplerates()                )) < 0 ||
         (ret = ff_add_channel_layout(&channel_layouts, s->output_layout)) < 0 ||
         (ret = ff_channel_layouts_ref(channel_layouts,
-                                      &ctx->outputs[0]->in_channel_layouts)) < 0)
+                                      &ctx->outputs[0]->incfg.channel_layouts)) < 0)
         return ret;
 
     return ff_channel_layouts_ref(ff_all_channel_counts(),
-                                  &ctx->inputs[0]->out_channel_layouts);
+                                  &ctx->inputs[0]->outcfg.channel_layouts);
 }
 
 static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
@@ -398,7 +398,7 @@ static const AVFilterPad avfilter_af_channelmap_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_af_channelmap = {
+const AVFilter ff_af_channelmap = {
     .name          = "channelmap",
     .description   = NULL_IF_CONFIG_SMALL("Remap audio channels."),
     .init          = channelmap_init,