You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/softfloat: Fix alternative implementation of av_normalize_sf()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -44,7 +44,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){
|
|||||||
a.exp -= 1;
|
a.exp -= 1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int s=ONE_BITS + 1 - av_log2(a.mant ^ (a.mant<<1));
|
int s=ONE_BITS - av_log2(FFABS(a.mant));
|
||||||
a.exp -= s;
|
a.exp -= s;
|
||||||
a.mant <<= s;
|
a.mant <<= s;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user