Commit 099dfcaa authored by Paul B Mahol's avatar Paul B Mahol

lavfi/ashowinfo: unbreak for >8 channels

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 729709b8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment