diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-10-29 22:39:11 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-10-29 22:39:11 +0000 |
commit | bc423886482de2be384ba583e1d5ddbcf3aac262 (patch) | |
tree | 3dac9de08a1be3848d4e1b6739d97810e87b7630 /libavcodec | |
parent | 9d85cbd93ab39a284f56d1ac1d6e036014d34f63 (diff) | |
download | ffmpeg-bc423886482de2be384ba583e1d5ddbcf3aac262.tar.gz |
use lrintf to avoid double conversion
Originally committed as revision 1107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 9826e4bc9a..f48f097273 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -1184,7 +1184,7 @@ static int wma_decode_frame(WMADecodeContext *s, int16_t *samples) iptr = s->frame_out[ch]; for(i=0;i<n;i++) { - a = lrint(*iptr++); + a = lrintf(*iptr++); if (a > 32767) a = 32767; else if (a < -32768) |