Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | fail | Make fate failed |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | fail | Make fate failed |
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index ce8e89515a..d63c856770 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -119,7 +119,8 @@ 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.order = AV_CHANNEL_ORDER_UNSPEC; + ast->codecpar->ch_layout.nb_channels = channels; ast->codecpar->sample_rate = srate; avpriv_set_pts_info(ast, 32, 1, srate); }