[FFmpeg-cvslog] lavfi/ashowinfo: unbreak for >8 channels
Paul B Mahol
git at videolan.org
Sun Jul 14 00:06:15 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 13 22:04:14 2013 +0000| [099dfcaa0eef03a779d990b1802206db6d1a35af] | committer: Paul B Mahol
lavfi/ashowinfo: unbreak for >8 channels
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=099dfcaa0eef03a779d990b1802206db6d1a35af
---
libavfilter/af_ashowinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index 75aed80..08a6395 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;
More information about the ffmpeg-cvslog
mailing list