mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-07 21:17:58 +00:00
cdxl: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eaad010f7b
commit
6d3aa08ad2
@ -178,8 +178,7 @@ static int cdxl_read_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_S8_PLANAR;
|
||||
st->codecpar->channels = channels;
|
||||
st->codecpar->channel_layout = channels == 2 ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
|
||||
av_channel_layout_default(&st->codecpar->ch_layout, channels);
|
||||
st->codecpar->sample_rate= cdxl->srate;
|
||||
st->start_time = 0;
|
||||
cdxl->audio_stream_index = st->index;
|
||||
|
Loading…
Reference in New Issue
Block a user