mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
sga: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
525ccbe8f1
commit
87e092348b
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue