mvi: convert to new channel layout API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Vittorio Giovara 2017-03-31 17:46:48 +02:00 committed by James Almer
parent 28fdd7c6cb
commit cce7b9122a
1 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,7 @@ static int read_header(AVFormatContext *s)
avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate); avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate);
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
ast->codecpar->channels = 1; ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
ast->codecpar->bits_per_coded_sample = 8; ast->codecpar->bits_per_coded_sample = 8;
ast->codecpar->bit_rate = ast->codecpar->sample_rate * 8; ast->codecpar->bit_rate = ast->codecpar->sample_rate * 8;