From 0e289fafa7b9b1a129fdcf2e7e9e9c222e50e731 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 May 2019 11:11:26 +0200 Subject: [PATCH] dhav: convert to new channel layout API Signed-off-by: James Almer --- libavformat/dhav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)