mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
mpeg: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eb2634339b
commit
f4602e9ba6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user