Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 19:45:28 +0300
committerJames Almer <jamrial@gmail.com>2022-03-15 15:42:38 +0300
commitda903bf1fbf17d4ef8434373bd987c7533a64e43 (patch)
tree3932fef8c39937001ff0376d83811665cdf8b86b /libavformat/thp.c
parent30b46fb9802726d2a0dbfe44978e5a0cd3f71207 (diff)
thp: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r--libavformat/thp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 7103cf4f8a..fdb499bf42 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -142,7 +142,7 @@ 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.nb_channels = avio_rb32(pb);
st->codecpar->sample_rate = avio_rb32(pb); /* Frequency. */
st->duration = avio_rb32(pb);