mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
hcom: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
d71bddbbe9
commit
8f835935b3
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ static int hcom_read_header(AVFormatContext *s)
|
|||
return AVERROR(ENOMEM);
|
||||
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->channels = 1;
|
||||
st->codecpar->ch_layout.nb_channels = 1;
|
||||
st->codecpar->sample_rate = 22050 / divisor;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_HCOM;
|
||||
st->codecpar->bits_per_coded_sample = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue