Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-12-13 02:38:25 +0300
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-12-14 03:06:55 +0300
commitad5807f8aa883bee5431186dc1f24c5435d722d3 (patch)
treed0d6dde8533ca046e122fe5bb7b35ee81b45cdac /libavformat/vqf.c
parent2b0112d42d4dfc8976be20b4d9729c0e077146c6 (diff)
avformat: fix overflows during bit rate calculation
The bit_rate field has type int64_t since commit 7404f3bdb90e6a5dcb59bc0a091e2c5c038e557d. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavformat/vqf.c')
-rw-r--r--libavformat/vqf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index 969fbefea6..841840edad 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -140,7 +140,7 @@ static int vqf_read_header(AVFormatContext *s)
return AVERROR_INVALIDDATA;
}
- st->codecpar->bit_rate = read_bitrate * 1000;
+ st->codecpar->bit_rate = (int64_t)read_bitrate * 1000;
break;
case MKTAG('D','S','I','Z'): // size of compressed data
{