diff mbox series

[FFmpeg-devel,072/281] hca: convert to new channel layout API

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

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

James Almer Jan. 13, 2022, 1:50 a.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/hca.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/hca.c b/libavformat/hca.c
index eaa96a9b17..3c9e549e38 100644
--- a/libavformat/hca.c
+++ b/libavformat/hca.c
@@ -79,7 +79,8 @@  static int hca_read_header(AVFormatContext *s)
     par->codec_type  = AVMEDIA_TYPE_AUDIO;
     par->codec_id    = AV_CODEC_ID_HCA;
     par->codec_tag   = 0;
-    par->channels    = bytestream2_get_byte(&gb);
+    st->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+    st->codecpar->ch_layout.nb_channels = bytestream2_get_byte(&gb);
     par->sample_rate = bytestream2_get_be24(&gb);
     block_count      = bytestream2_get_be32(&gb);
     bytestream2_skip(&gb, 4);