diff options
author | James Almer <jamrial@gmail.com> | 2022-01-17 13:26:13 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:34 -0300 |
commit | d85b577f98632393e0645059720b4ff519389a01 (patch) | |
tree | 67d8d418d9c7fc00fc3b4382208e002ca3880571 /libavformat | |
parent | e271d534e3f5aa13cbbfe0c487661b5616765330 (diff) | |
download | ffmpeg-d85b577f98632393e0645059720b4ff519389a01.tar.gz |
libgme: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/libgme.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |