Commit d85b577f authored by James Almer's avatar James Almer

libgme: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e271d534
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment