libgme: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-01-17 13:26:13 -03:00
parent e271d534e3
commit d85b577f98
1 changed files with 1 additions and 1 deletions

View File

@ -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;