af_amerge: set samples rate in query_formats.
authorNicolas George <nicolas.george@normalesup.org>
Wed, 23 May 2012 10:58:15 +0000 (12:58 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Wed, 23 May 2012 12:56:50 +0000 (14:56 +0200)
libavfilter/af_amerge.c

index 18b3046..abccfe4 100644 (file)
@@ -106,6 +106,7 @@ static int query_formats(AVFilterContext *ctx)
     layouts = NULL;
     ff_add_channel_layout(&layouts, outlayout);
     ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
+    ff_set_common_samplerates(ctx, ff_all_samplerates());
     return 0;
 }