From daf329fc38ef28a28c65650cceef3b875ab61f7d Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 27 Aug 2021 13:41:58 -0300 Subject: [PATCH] dshow: convert to new channel layout API Signed-off-by: James Almer --- libavdevice/dshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 3a16f3720f..6039578ff9 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -1632,7 +1632,7 @@ dshow_add_device(AVFormatContext *avctx, par->format = sample_fmt_bits_per_sample(fmt_info->sample_size); par->codec_id = waveform_codec_id(par->format); par->sample_rate = fmt_info->sample_rate; - par->channels = fmt_info->channels; + par->ch_layout.nb_channels = fmt_info->channels; } avpriv_set_pts_info(st, 64, 1, 10000000);