aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-13 22:04:14 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-13 22:04:14 +0000
commit099dfcaa0eef03a779d990b1802206db6d1a35af (patch)
tree5c2bbe1fca5d526233e7dbe11ce72018c3a5311e
parent729709b8904c4bcc3dc4747bdcf9a5f2bfc73e4a (diff)
downloadffmpeg-099dfcaa0eef03a779d990b1802206db6d1a35af.tar.gz
lavfi/ashowinfo: unbreak for >8 channels
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-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 75aed80a17..08a63951c3 100644
--- a/libavfilter/af_ashowinfo.c
+++ b/libavfilter/af_ashowinfo.c
@@ -57,7 +57,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
AShowInfoContext *s = ctx->priv;
char chlayout_str[128];
uint32_t checksum = 0;
- int channels = av_get_channel_layout_nb_channels(buf->channel_layout);
+ int channels = inlink->channels;
int planar = av_sample_fmt_is_planar(buf->format);
int block_align = av_get_bytes_per_sample(buf->format) * (planar ? 1 : channels);
int data_size = buf->nb_samples * block_align;