diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-13 21:41:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-13 23:10:05 +0200 |
commit | f3d138ab2292e008d32ccb012aca1a5ade0e2e7a (patch) | |
tree | eb8b78e0a5927ed0285f67a3e4374fb8490a28a6 /libavdevice/lavfi.c | |
parent | 673d4e82d4c528ac5044e682588d985e466ebc06 (diff) | |
download | ffmpeg-f3d138ab2292e008d32ccb012aca1a5ade0e2e7a.tar.gz |
avdevice/lavfi: fix input with unknown channel layout
Fixes handling of >8 channels
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r-- | libavdevice/lavfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 9322ce5961..559f721c8f 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -286,7 +286,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) 30); } else if (link->type == AVMEDIA_TYPE_AUDIO) { st->codec->codec_id = av_get_pcm_codec(link->format, -1); - st->codec->channels = av_get_channel_layout_nb_channels(link->channel_layout); + st->codec->channels = avfilter_link_get_channels(link); st->codec->sample_fmt = link->format; st->codec->sample_rate = link->sample_rate; st->codec->time_base = link->time_base; |