[FFmpeg-devel] [PATCH 156/281] thp: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 04:00:03 EET 2022
From: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/thp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 7103cf4f8a..2dd8b4d618 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -142,7 +142,8 @@ static int thp_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_THP;
st->codecpar->codec_tag = 0; /* no fourcc */
- st->codecpar->channels = avio_rb32(pb); /* numChannels. */
+ st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
+ st->codecpar->ch_layout.nb_channels = avio_rb32(pb);
st->codecpar->sample_rate = avio_rb32(pb); /* Frequency. */
st->duration = avio_rb32(pb);
--
2.34.1
More information about the ffmpeg-devel
mailing list