summaryrefslogtreecommitdiff
path: root/libavformat/sga.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:45:29 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:37 -0300
commit87e092348b1577aa989b8b44d9c708112e1b27b7 (patch)
treec9b77b3f28a9a21eeedda819eaa008bcdfd055da /libavformat/sga.c
parent525ccbe8f13b1552df4bc9e172ec89101976b185 (diff)
sga: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/sga.c')
-rw-r--r--libavformat/sga.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/sga.c b/libavformat/sga.c
index 16e8fe516d..12e9cc1441 100644
--- a/libavformat/sga.c
+++ b/libavformat/sga.c
@@ -323,8 +323,7 @@ static int sga_audio_packet(AVFormatContext *s, AVPacket *pkt)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_tag = 0;
st->codecpar->codec_id = AV_CODEC_ID_PCM_SGA;
- st->codecpar->channels = 1;
- st->codecpar->channel_layout= AV_CH_LAYOUT_MONO;
+ st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
st->codecpar->sample_rate = av_rescale(AV_RB16(sga->sector + 8),
SEGA_CD_PCM_NUM,
SEGA_CD_PCM_DEN);