aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvdec_h264.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-14 16:51:00 +0100
commit88ccca204ab67d8eda5745a94eed69882af6a3dc (patch)
treeefb2e6bdf81e3626f50eda768a2c95cb5cbad6fc /libavcodec/qsvdec_h264.c
parent07a30246315b568fc2155e17a4e78529082657ed (diff)
downloadffmpeg-88ccca204ab67d8eda5745a94eed69882af6a3dc.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/qsvdec_h264.c')
0 files changed, 0 insertions, 0 deletions