mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
electronicarts: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b8ae11c24c
commit
c2e7f5b285
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user