[FFmpeg-cvslog] avfilter/af_silencedetect: support all channel counts
Paul B Mahol
git at videolan.org
Thu Sep 2 21:27:17 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 2 20:21:03 2021 +0200| [ba3c09b84aeed514c8fa91a2a457e261e4be4f39] | committer: Paul B Mahol
avfilter/af_silencedetect: support all channel counts
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba3c09b84aeed514c8fa91a2a457e261e4be4f39
---
libavfilter/af_silencedetect.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index 11fbc94225..6f747b64b2 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -197,7 +197,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
static int query_formats(AVFilterContext *ctx)
{
- AVFilterChannelLayouts *layouts = NULL;
static const enum AVSampleFormat sample_fmts[] = {
AV_SAMPLE_FMT_DBL,
AV_SAMPLE_FMT_FLT,
@@ -205,12 +204,7 @@ static int query_formats(AVFilterContext *ctx)
AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE
};
- int ret;
-
- layouts = ff_all_channel_layouts();
- if (!layouts)
- return AVERROR(ENOMEM);
- ret = ff_set_common_channel_layouts(ctx, layouts);
+ int ret = ff_set_common_all_channel_counts(ctx);
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list