Signed-off-by: Michael Niedermayer <[email protected]>
---
libavfilter/af_volumedetect.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index 4815bcc..c6a6dba 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -51,9 +51,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame
*samples)
{
AVFilterContext *ctx = inlink->dst;
VolDetectContext *vd = ctx->priv;
- int64_t layout = samples->channel_layout;
int nb_samples = samples->nb_samples;
- int nb_channels = av_get_channel_layout_nb_channels(layout);
+ int nb_channels = av_frame_get_channels(samples);
int nb_planes = nb_channels;
int plane, i;
int16_t *pcm;
--
2.9.3
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel