summaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-05 12:56:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-05 12:56:12 +0200
commitc7ce16e716a8e160140c16c7cfb326cdcfb31652 (patch)
treea0184aa1bb662c50b5ba1a67c107f3bde2b118e1 /libavutil/softfloat.h
parentc93602ae5bd4a3d3e51c86e0778b85631fe41b67 (diff)
downloadffmpeg-streaming-c7ce16e716a8e160140c16c7cfb326cdcfb31652.zip
ffmpeg-streaming-c7ce16e716a8e160140c16c7cfb326cdcfb31652.tar.gz
avutil/softfloat: Fix thresholds in av_normalize_sf()
Found-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/softfloat.h')
-rw-r--r--libavutil/softfloat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 6aecdf3..7938c20 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -39,7 +39,7 @@ typedef struct SoftFloat{
static av_const SoftFloat av_normalize_sf(SoftFloat a){
if(a.mant){
#if 1
- while((a.mant + 0x20000000U)<0x40000000U){
+ while((a.mant + 0x1FFFFFFFU)<0x3FFFFFFFU){
a.mant += a.mant;
a.exp -= 1;
}
OpenPOWER on IntegriCloud