diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-12 16:24:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-12 16:24:20 +0200 |
commit | 839d6bc192f7ef94343872ff039799501af38855 (patch) | |
tree | d0fcff1f384e41dff518f32b77ccbca93444c10c | |
parent | cd326377414d02d5f6bec21609d9e6219c481ed4 (diff) | |
download | ffmpeg-839d6bc192f7ef94343872ff039799501af38855.tar.gz |
avformat/riffde: Fix integer overflow in bitrate
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/riffdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 3291d6141f..7eecdb24b8 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -99,13 +99,13 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, id = avio_rl16(pb); codec->channels = avio_rl16(pb); codec->sample_rate = avio_rl32(pb); - bitrate = avio_rl32(pb) * 8; + bitrate = avio_rl32(pb) * 8LL; codec->block_align = avio_rl16(pb); } else { id = avio_rb16(pb); codec->channels = avio_rb16(pb); codec->sample_rate = avio_rb32(pb); - bitrate = avio_rb32(pb) * 8; + bitrate = avio_rb32(pb) * 8LL; codec->block_align = avio_rb16(pb); } if (size == 14) { /* We're dealing with plain vanilla WAVEFORMAT */ |