From 972763ef4511fae8397c53b34cc1bfdff1f597c9 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 May 2019 11:11:26 +0200 Subject: [PATCH] g726: convert to new channel layout API Signed-off-by: James Almer --- libavformat/g726.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/g726.c b/libavformat/g726.c index 4b08d0a9f7..08021cc23b 100644 --- a/libavformat/g726.c +++ b/libavformat/g726.c @@ -42,7 +42,7 @@ static int g726_read_header(AVFormatContext *s) st->codecpar->sample_rate = c->sample_rate; st->codecpar->bits_per_coded_sample = c->code_size; st->codecpar->bit_rate = ((int[]){ 16000, 24000, 32000, 40000 })[c->code_size - 2]; - st->codecpar->channels = 1; + st->codecpar->ch_layout.nb_channels = 1; return 0; }