diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 13:50:19 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:32 -0300 |
commit | c2e7f5b285f8dba60cee8f2580f4f80569a963ad (patch) | |
tree | 7710712324fa1d46092bb5fab1c05fd0f6f419fd /libavformat/electronicarts.c | |
parent | b8ae11c24ceba91d8f7ae8a089b60b07f2fde9e1 (diff) | |
download | ffmpeg-c2e7f5b285f8dba60cee8f2580f4f80569a963ad.tar.gz |
electronicarts: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r-- | libavformat/electronicarts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 2fb09b34ca..e7f0cb9b9e 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -551,13 +551,13 @@ static int ea_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = ea->audio_codec; st->codecpar->codec_tag = 0; /* no tag */ - st->codecpar->channels = ea->num_channels; + st->codecpar->ch_layout.nb_channels = ea->num_channels; st->codecpar->sample_rate = ea->sample_rate; st->codecpar->bits_per_coded_sample = ea->bytes * 8; - st->codecpar->bit_rate = (int64_t)st->codecpar->channels * + st->codecpar->bit_rate = (int64_t)ea->num_channels * st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample / 4; - st->codecpar->block_align = st->codecpar->channels * + st->codecpar->block_align = ea->num_channels * st->codecpar->bits_per_coded_sample; ea->audio_stream_index = st->index; st->start_time = 0; |