[FFmpeg-cvslog] avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts

Marton Balint git at videolan.org
Sat Dec 10 13:10:10 EET 2016


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Dec  3 20:06:14 2016 +0100| [df694a5e9d40bdae734c8bb9523c13722b38ebe5] | committer: Marton Balint

avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts

Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df694a5e9d40bdae734c8bb9523c13722b38ebe5
---

 libavfilter/af_ashowinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index ba600cb..a81729f 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,



More information about the ffmpeg-cvslog mailing list