mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
g726: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
f17932faf5
commit
972763ef45
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue