Commit 057f237c authored by Anton Khirnov's avatar Anton Khirnov Committed by James Almer

aptxdec: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 64f27c10
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment