mirror of https://git.ffmpeg.org/ffmpeg.git
libgme: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e271d534e3
commit
d85b577f98
|
@ -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…
Reference in New Issue