mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 01:01:07 +00: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
@ -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…
Reference in New Issue
Block a user