g726: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Anton Khirnov 2019-05-13 11:11:26 +02:00 committed by James Almer
parent f17932faf5
commit 972763ef45
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}