lavfi/ashowinfo: unbreak for >8 channels
authorPaul B Mahol <onemda@gmail.com>
Sat, 13 Jul 2013 22:04:14 +0000 (22:04 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 13 Jul 2013 22:04:14 +0000 (22:04 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_ashowinfo.c

index 75aed80..08a6395 100644 (file)
@@ -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;