[FFmpeg-cvslog] avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()

Michael Niedermayer git at videolan.org
Mon Jun 5 00:41:49 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jun  4 20:45:09 2017 +0200| [6019d721d4c10bf73018d68511d9d0a914c0a389] | committer: Michael Niedermayer

avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6019d721d4c10bf73018d68511d9d0a914c0a389
---

 libavutil/softfloat.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 32b33d9dfd..b13d728f30 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -176,8 +176,10 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){
 //FIXME log, exp, pow
 
 /**
- * Converts a mantisse and exponent to a SoftFloat
- * @returns a SoftFloat with value v * 2^frac_bits
+ * Converts a mantisse and exponent to a SoftFloat.
+ * This converts a fixed point value v with frac_bits fractional bits to a
+ * SoftFloat.
+ * @returns a SoftFloat with value v * 2^-frac_bits
  */
 static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
     int exp_offset = 0;



More information about the ffmpeg-cvslog mailing list