aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-27 13:41:58 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:31 -0300
commitdaf329fc38ef28a28c65650cceef3b875ab61f7d (patch)
treee8bf792f4a35d216f722ffa909f512d4bb1d344c /libavdevice
parent279876c3548d5571246e27a463c6d1d62eda1a71 (diff)
downloadffmpeg-daf329fc38ef28a28c65650cceef3b875ab61f7d.tar.gz
dshow: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
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);