mpeg: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Anton Khirnov 6 years ago committed by James Almer
parent eb2634339b
commit f4602e9ba6
  1. 3
      libavformat/mpeg.c

@ -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…
Cancel
Save