summaryrefslogtreecommitdiff
path: root/libavformat/dtshddec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-13 11:11:26 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:31 -0300
commit7e531b24dea5bc00fa95ee4b1b1e5adf534806df (patch)
tree8640dcb473ac41753728abfd0e09e60adcbc4ee9 /libavformat/dtshddec.c
parent0e289fafa7b9b1a129fdcf2e7e9e9c222e50e731 (diff)
downloadffmpeg-7e531b24dea5bc00fa95ee4b1b1e5adf534806df.tar.gz
dtshddec: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dtshddec.c')
-rw-r--r--libavformat/dtshddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dtshddec.c b/libavformat/dtshddec.c
index b84588af7c..edd02b4561 100644
--- a/libavformat/dtshddec.c
+++ b/libavformat/dtshddec.c
@@ -104,7 +104,7 @@ static int dtshd_read_header(AVFormatContext *s)
duration *= avio_rb16(pb); // samples_per_frames
st->duration = duration;
avio_skip(pb, 5);
- st->codecpar->channels = ff_dca_count_chs_for_mask(avio_rb16(pb));
+ st->codecpar->ch_layout.nb_channels = ff_dca_count_chs_for_mask(avio_rb16(pb));
st->codecpar->initial_padding = avio_rb16(pb);
avio_skip(pb, chunk_size - 21);
break;