You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
use lrintf to avoid double conversion
Originally committed as revision 1107 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1184,7 +1184,7 @@ static int wma_decode_frame(WMADecodeContext *s, int16_t *samples)
|
|||||||
iptr = s->frame_out[ch];
|
iptr = s->frame_out[ch];
|
||||||
|
|
||||||
for(i=0;i<n;i++) {
|
for(i=0;i<n;i++) {
|
||||||
a = lrint(*iptr++);
|
a = lrintf(*iptr++);
|
||||||
if (a > 32767)
|
if (a > 32767)
|
||||||
a = 32767;
|
a = 32767;
|
||||||
else if (a < -32768)
|
else if (a < -32768)
|
||||||
|
Reference in New Issue
Block a user