mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat: fix overflows during bit rate calculation
The bit_rate field has type int64_t since commit
7404f3bdb9.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
2b0112d42d
commit
ad5807f8aa
10 changed files with 11 additions and 11 deletions
|
|
@ -557,7 +557,7 @@ static int ea_read_header(AVFormatContext *s)
|
|||
st->codecpar->channels = ea->num_channels;
|
||||
st->codecpar->sample_rate = ea->sample_rate;
|
||||
st->codecpar->bits_per_coded_sample = ea->bytes * 8;
|
||||
st->codecpar->bit_rate = st->codecpar->channels *
|
||||
st->codecpar->bit_rate = (int64_t)st->codecpar->channels *
|
||||
st->codecpar->sample_rate *
|
||||
st->codecpar->bits_per_coded_sample / 4;
|
||||
st->codecpar->block_align = st->codecpar->channels *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue