[FFmpeg-devel] [PATCH 051/281] dshow: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 03:50:13 EET 2022
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavdevice/dshow.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 3a16f3720f..c0a060dc0c 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1632,7 +1632,8 @@ 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.order = AV_CHANNEL_ORDER_UNSPEC;
+ par->ch_layout.nb_channels = fmt_info->channels;
}
avpriv_set_pts_info(st, 64, 1, 10000000);
--
2.34.1
More information about the ffmpeg-devel
mailing list