1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hca: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2021-08-23 23:21:59 -03:00
parent 92e9b6ab6d
commit d71bddbbe9

View File

@ -79,7 +79,7 @@ static int hca_read_header(AVFormatContext *s)
par->codec_type = AVMEDIA_TYPE_AUDIO;
par->codec_id = AV_CODEC_ID_HCA;
par->codec_tag = 0;
par->channels = bytestream2_get_byte(&gb);
st->codecpar->ch_layout.nb_channels = bytestream2_get_byte(&gb);
par->sample_rate = bytestream2_get_be24(&gb);
block_count = bytestream2_get_be32(&gb);
bytestream2_skip(&gb, 4);