mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 22:33:37 +00: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…
Reference in New Issue
Block a user