From 360fac00454d331377c79ea70bca8eb778c308e3 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 31 Mar 2017 18:34:39 +0200 Subject: [PATCH] smush: convert to new channel layout API Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/smush.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/smush.c b/libavformat/smush.c index 59807ab963..f133bbb02c 100644 --- a/libavformat/smush.c +++ b/libavformat/smush.c @@ -178,8 +178,7 @@ static int smush_read_header(AVFormatContext *ctx) ast->codecpar->codec_id = AV_CODEC_ID_ADPCM_VIMA; ast->codecpar->codec_tag = 0; ast->codecpar->sample_rate = sample_rate; - ast->codecpar->channels = channels; - + ast->codecpar->ch_layout.nb_channels = channels; avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate); }