diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-01 12:44:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-06 02:08:25 +0100 |
commit | 582a6035bc8d36565821c020187fa6b86f40ef94 (patch) | |
tree | 5984c97fd1af57b61180646c1e45603f1a8c1503 /libavcodec/vp3.c | |
parent | 60369668ca34a85f784cd221b0fcecd9ae5e7f97 (diff) | |
download | ffmpeg-582a6035bc8d36565821c020187fa6b86f40ef94.tar.gz |
avutil/mathematics: Do not treat INT64_MIN as positive in av_rescale_rnd
The code expects actual positive numbers and gives completely wrong
results if INT64_MIN is treated as positive
Instead clip it into the valid range that is add 1 and treat it as
negative
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 25e37f5ea92d4201976a59ae306ce848d257a7e6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vp3.c')
0 files changed, 0 insertions, 0 deletions