aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-13 11:11:26 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:33 -0300
commit972763ef4511fae8397c53b34cc1bfdff1f597c9 (patch)
tree787c7a3ae5ca28d3c0b92110f9a08a7d9d2f2831
parentf17932faf5e599ddfa84beafe21128d271b4f8fb (diff)
downloadffmpeg-972763ef4511fae8397c53b34cc1bfdff1f597c9.tar.gz
g726: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/g726.c2
1 files changed, 1 insertions, 1 deletions
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;
}