From bc67df697b300e0fd792bf46c7726ca8478cb2ef Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 31 Mar 2017 19:01:03 +0200 Subject: yop: convert to new channel layout API Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/yop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat/yop.c') diff --git a/libavformat/yop.c b/libavformat/yop.c index f65e4f8b16..b0aa0bb64b 100644 --- a/libavformat/yop.c +++ b/libavformat/yop.c @@ -72,8 +72,7 @@ static int yop_read_header(AVFormatContext *s) audio_par = audio_stream->codecpar; audio_par->codec_type = AVMEDIA_TYPE_AUDIO; audio_par->codec_id = AV_CODEC_ID_ADPCM_IMA_APC; - audio_par->channels = 1; - audio_par->channel_layout = AV_CH_LAYOUT_MONO; + audio_par->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; audio_par->sample_rate = 22050; // Video -- cgit v1.2.3