summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_histogram.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-12-01 12:44:23 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-01 13:26:12 +0100
commit25e37f5ea92d4201976a59ae306ce848d257a7e6 (patch)
treebe19f5a32f13b16c0eddfce01470260b44269c5b /libavfilter/vf_histogram.c
parent3a9cb18855d29c96a5d9d2f5ad30448cae3a2ddf (diff)
downloadffmpeg-streaming-25e37f5ea92d4201976a59ae306ce848d257a7e6.zip
ffmpeg-streaming-25e37f5ea92d4201976a59ae306ce848d257a7e6.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>
Diffstat (limited to 'libavfilter/vf_histogram.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud