diff mbox series

[FFmpeg-devel,084/281] jack: port to new channel layout API

Message ID 20220113015101.4-85-jamrial@gmail.com
State New
Headers show
Series New channel layout API | expand

Commit Message

James Almer Jan. 13, 2022, 1:50 a.m. UTC
From: Anton Khirnov <anton@khirnov.net>

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavdevice/jack.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavdevice/jack.c b/libavdevice/jack.c
index 0d5465e407..53ce029dfd 100644
--- a/libavdevice/jack.c
+++ b/libavdevice/jack.c
@@ -255,7 +255,8 @@  static int audio_read_header(AVFormatContext *context)
     stream->codecpar->codec_id     = AV_CODEC_ID_PCM_F32LE;
 #endif
     stream->codecpar->sample_rate  = self->sample_rate;
-    stream->codecpar->channels     = self->nports;
+    stream->codecpar->ch_layout.nb_channels = self->nports;
+    stream->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
 
     avpriv_set_pts_info(stream, 64, 1, 1000000);  /* 64 bits pts in us */
     return 0;