diff mbox

[FFmpeg-devel,3/3] lavfi/af_ashowinfo: properly show input channel layout for unknown channel layouts

Message ID 20161204132457.5910-3-cus@passwd.hu
State Accepted
Commit df694a5e9d40bdae734c8bb9523c13722b38ebe5
Headers show

Commit Message

Marton Balint Dec. 4, 2016, 1:24 p.m. UTC
Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavfilter/af_ashowinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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,