[FFmpeg-devel] [PATCH 143/281] sga: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 03:58:00 EET 2022
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/sga.c | 3 +--
1 file changed, 1 insertion(+), 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);
--
2.34.1
More information about the ffmpeg-devel
mailing list