libgme: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
James Almer 3 years ago
parent e271d534e3
commit d85b577f98
  1. 2
      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;

Loading…
Cancel
Save