Commit f4602e9b authored by Anton Khirnov's avatar Anton Khirnov Committed by James Almer

mpeg: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent eb263433
......@@ -621,8 +621,7 @@ skip:
st->codecpar->codec_id = codec_id;
if ( st->codecpar->codec_id == AV_CODEC_ID_PCM_MULAW
|| st->codecpar->codec_id == AV_CODEC_ID_PCM_ALAW) {
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 = 8000;
}
sti->request_probe = request_probe;
......
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