[FFmpeg-devel] [PATCH] af_amerge: set samples rate in query_formats.

Nicolas George nicolas.george at normalesup.org
Wed May 23 12:59:32 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/af_amerge.c |    1 +
 1 file changed, 1 insertion(+)


Fixes a segfault reported on ffmpeg-users.


diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
index 18b3046..abccfe4 100644
--- a/libavfilter/af_amerge.c
+++ b/libavfilter/af_amerge.c
@@ -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;
 }
 
-- 
1.7.10



More information about the ffmpeg-devel mailing list