[FFmpeg-cvslog] avutil/softfloat: Fix alternative implementation of av_normalize1_sf()
Michael Niedermayer
git at videolan.org
Fri Jun 5 17:56:40 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 5 17:39:42 2015 +0200| [af8d63e756e636649b1e4378b54617a8d90d0f7f] | committer: Michael Niedermayer
avutil/softfloat: Fix alternative implementation of av_normalize1_sf()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af8d63e756e636649b1e4378b54617a8d90d0f7f
---
libavutil/softfloat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index bf511b5..392b6d8 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -70,7 +70,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
int t= a.mant + 0x40000000 < 0;
return (SoftFloat){ a.mant>>t, a.exp+t};
#else
- int t= (a.mant + 0x40000000U)>>31;
+ int t= (a.mant + 0x3FFFFFFFU)>>31;
return (SoftFloat){a.mant>>t, a.exp+t};
#endif
}
More information about the ffmpeg-cvslog
mailing list