summaryrefslogtreecommitdiff
path: root/libavformat/dhav.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
commit0e289fafa7b9b1a129fdcf2e7e9e9c222e50e731 (patch)
treedd787cdf60bf49763cf058967b1c72e1ecc9bb3e /libavformat/dhav.c
parent5cb02982a545707506c624106e84ec5686e0945a (diff)
dhav: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dhav.c')
-rw-r--r--libavformat/dhav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dhav.c b/libavformat/dhav.c
index 6c1cdde32c..60aab8cabd 100644
--- a/libavformat/dhav.c
+++ b/libavformat/dhav.c
@@ -395,7 +395,7 @@ retry:
default: avpriv_request_sample(s, "Unknown audio codec %X", dhav->audio_codec);
}
st->duration = dhav->duration;
- st->codecpar->channels = dhav->audio_channels;
+ st->codecpar->ch_layout.nb_channels = dhav->audio_channels;
st->codecpar->sample_rate = dhav->sample_rate;
st->priv_data = dst = av_mallocz(sizeof(DHAVStream));
if (!st->priv_data)