1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

pmp: 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 18:08:44 +02:00
committed by James Almer
parent 5347f2920f
commit 6f243af036

View File

@@ -119,7 +119,7 @@ static int pmp_header(AVFormatContext *s)
return AVERROR(ENOMEM);
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codecpar->codec_id = audio_codec_id;
ast->codecpar->channels = channels;
ast->codecpar->ch_layout.nb_channels = channels;
ast->codecpar->sample_rate = srate;
avpriv_set_pts_info(ast, 32, 1, srate);
}