1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

aptxdec: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Anton Khirnov 2019-05-13 11:11:26 +02:00 committed by James Almer
parent 64f27c10ee
commit 057f237ca4

View File

@ -42,7 +42,7 @@ static AVStream *aptx_read_header_common(AVFormatContext *s)
return NULL;
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->format = AV_SAMPLE_FMT_S32P;
st->codecpar->channels = 2;
st->codecpar->ch_layout.nb_channels = 2;
st->codecpar->sample_rate = s1->sample_rate;
st->start_time = 0;
return st;