[FFmpeg-devel] [PATCH 1/2] avdevice/lavfi: fix input with unknown channel layout
Michael Niedermayer
michaelni at gmx.at
Sat Jul 13 21:46:27 CEST 2013
Fixes handling of >8 channels
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavdevice/lavfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 9322ce5..559f721 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;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list