aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/timecode.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-20 10:59:27 +0100
commit100dbe1bf007024224c7ae2bb5d1aa956d979722 (patch)
treea1f87b0ff38ec035ba3ea4163cee28dd5d407590 /libavutil/timecode.c
parentd8a66a150ae1ef88b6d9a43905de0f90f4a1385f (diff)
downloadffmpeg-100dbe1bf007024224c7ae2bb5d1aa956d979722.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 'libavutil/timecode.c')
0 files changed, 0 insertions, 0 deletions