---
libavfilter/af_volume.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 0ec42b031e..bbadd87d47 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -228,7 +228,7 @@ static int config_output(AVFilterLink *outlink)
AVFilterLink *inlink = ctx->inputs[0];
vol->sample_fmt = inlink->format;
- vol->channels =
av_get_channel_layout_nb_channels(inlink->channel_layout);
+ vol->channels = inlink->ch_layout.nb_channels;
vol->planes = av_sample_fmt_is_planar(inlink->format) ? vol->channels
: 1;
volume_init(vol);
--
2.12.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel