aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1_parser.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-06 12:40:50 +0100
commit53ddc450c80f082c41732e2fd87346e19ae7f48d (patch)
treed8b1e38fdc2dc642237cb121a68027b66e40ad27 /libavcodec/vc1_parser.c
parent5cc411022e49edad09aa3eb5faef14a2a51492f6 (diff)
downloadffmpeg-53ddc450c80f082c41732e2fd87346e19ae7f48d.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/vc1_parser.c')
0 files changed, 0 insertions, 0 deletions