From 57141d73c7005565137f25fe10bcebd58070343b Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 31 Mar 2017 18:05:19 +0200 Subject: [PATCH] paf: convert to new channel layout API Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/paf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/paf.c b/libavformat/paf.c index 140e0567e1..d48cf57645 100644 --- a/libavformat/paf.c +++ b/libavformat/paf.c @@ -127,8 +127,7 @@ static int read_header(AVFormatContext *s) ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_tag = 0; ast->codecpar->codec_id = AV_CODEC_ID_PAF_AUDIO; - ast->codecpar->channels = 2; - ast->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; + ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO; ast->codecpar->sample_rate = 22050; avpriv_set_pts_info(ast, 64, 1, 22050);