From d85b577f98632393e0645059720b4ff519389a01 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 17 Jan 2022 13:26:13 -0300 Subject: [PATCH] libgme: convert to new channel layout API Signed-off-by: James Almer --- libavformat/libgme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libgme.c b/libavformat/libgme.c index 6a145349a7..695155c9ac 100644 --- a/libavformat/libgme.c +++ b/libavformat/libgme.c @@ -142,7 +142,7 @@ static int read_header_gme(AVFormatContext *s) st->duration = duration; st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE); - st->codecpar->channels = 2; + st->codecpar->ch_layout.nb_channels = 2; st->codecpar->sample_rate = gme->sample_rate; return 0;