From: Marton Balint Date: Sat, 3 Dec 2016 19:06:14 +0000 (+0100) Subject: avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=df694a5e9d40bdae734c8bb9523c13722b38ebe5;p=ffmpeg avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts Reviewed-by: Nicolas George Signed-off-by: Marton Balint --- diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c index ba600cbc680..a81729f7f7f 100644 --- a/libavfilter/af_ashowinfo.c +++ b/libavfilter/af_ashowinfo.c @@ -199,7 +199,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) s->plane_checksums[0]; } - av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), -1, + av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), av_frame_get_channels(buf), buf->channel_layout); av_log(ctx, AV_LOG_INFO,