Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-12-03 22:06:14 +0300
committerMarton Balint <cus@passwd.hu>2016-12-10 13:57:12 +0300
commitdf694a5e9d40bdae734c8bb9523c13722b38ebe5 (patch)
tree4e4f5f3822218be47170b0e7e39989977aba77c5 /libavfilter/af_ashowinfo.c
parent01a19f77caa42a7be5cd40c4b020c550e7065fe0 (diff)
avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/af_ashowinfo.c')
-rw-r--r--libavfilter/af_ashowinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index ba600cbc68..a81729f7f7 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,