summaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.h
diff options
context:
space:
mode:
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 a3b2238..48d0d59 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -175,7 +175,7 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){
*/
static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
int exp_offset = 0;
- if(v == INT_MIN){
+ if(v <= INT_MIN + 1){
exp_offset = 1;
v>>=1;
}
OpenPOWER on IntegriCloud