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:51:27 +0100 |
commit | 460710500e172042144784a3152aa8d1c5c29cf6 (patch) | |
tree | 72f300adbfbc945747f6efa2454006e72479b119 /doc/examples/filtering_video.c | |
parent | 4d9999705f406b508e4ba017cd804b8688b64d68 (diff) | |
download | ffmpeg-460710500e172042144784a3152aa8d1c5c29cf6.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 'doc/examples/filtering_video.c')
0 files changed, 0 insertions, 0 deletions