This is similar to commit 9ac61e73d0843ec4b83f4e3d47eded73234e406e.
Unified · Split
| @@ -175,7 +175,7 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ · 174 unmodified lines | |||
| 175 | */ | 175 | */ |
| 176 | static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ | 176 | static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ |
| 177 | int exp_offset = 0; | 177 | int exp_offset = 0; |
| 178 | if(v == INT_MIN){ | 178 | if(v <= INT_MIN + 1){ |
| 179 | exp_offset = 1; | 179 | exp_offset = 1; |
| 180 | v>>=1; | 180 | v>>=1; |
| 181 | } | 181 | } |