[Ffmpeg-devel] Use of llrint() in mpegaudiodec.c

Måns Rullgård mru
Tue Nov 28 22:26:10 CET 2006


In mpegaudiodec.c there are two calls to llrint().  This function
isn't available on some platforms, so linking fails there.  Looking
closer, I notice that in both cases, the return value is immediately
assigned to a 32-bit variable.  This makes be think that using lrint()
should work equally well, and lrint() is more widely available than
llrint().  Is there some subtle issue I'm missing here, or is the
attached patch safe?

-- 
M?ns Rullg?rd
mru at inprovide.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llrint.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061128/fcd6b486/attachment.bin>



More information about the ffmpeg-devel mailing list