softfloat: handle -INT_MAX correctly
This is similar to commit9ac61e73d0. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit0edd569466) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
e93934e100
commit
48496e4d4f
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue