]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_channelmap.c
avfilter/vf_vectorscope: 9 & 10 bit depth support
[ffmpeg] / libavfilter / af_channelmap.c
index dae79c14b6b07b84f0af85fbce8457f5115c093e..37b47b2d7bb85e21aeddc586ba895f2758c2c123 100644 (file)
@@ -290,15 +290,15 @@ static int channelmap_query_formats(AVFilterContext *ctx)
     AVFilterChannelLayouts *layouts;
     AVFilterChannelLayouts *channel_layouts = NULL;
 
+    layouts = ff_all_channel_layouts();
+    if (!layouts)
+        return AVERROR(ENOMEM);
+
     ff_add_channel_layout(&channel_layouts, s->output_layout);
 
     ff_set_common_formats(ctx, ff_planar_sample_fmts());
     ff_set_common_samplerates(ctx, ff_all_samplerates());
 
-    layouts = ff_all_channel_layouts();
-    if (!layouts)
-        return AVERROR(ENOMEM);
-
     ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts);
     ff_channel_layouts_ref(channel_layouts,          &ctx->outputs[0]->in_channel_layouts);