diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-07-13 22:04:14 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-07-13 22:04:14 +0000 |
commit | 099dfcaa0eef03a779d990b1802206db6d1a35af (patch) | |
tree | 5c2bbe1fca5d526233e7dbe11ce72018c3a5311e | |
parent | 729709b8904c4bcc3dc4747bdcf9a5f2bfc73e4a (diff) | |
download | ffmpeg-099dfcaa0eef03a779d990b1802206db6d1a35af.tar.gz |
lavfi/ashowinfo: unbreak for >8 channels
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_ashowinfo.c | 2 |
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; |