[FFmpeg-devel] [PATCH] examples/decoding_encoding: remove unused variable "size"

Clément Bœsch ubitux at gmail.com
Fri Apr 13 08:23:30 CEST 2012


On Fri, Apr 13, 2012 at 08:19:52AM +0200, Nicolas George wrote:
> Le quintidi 25 germinal, an CCXX, Clément Bœsch a écrit :
> > Looking at the configure, the extra libraries are in Libs.private if
> > FFmpeg is built with --enable-shared (which is the case in the distrib
> > package).
> 
> That is normal: shared libraries track their dependencies in the NEEDED
> private fields (see objdump -p). Static libraries, on the other hand, are
> just a collection of object files, and linking is flat.
> 
> But for that reason, if you are linking with shared libav*, you should not
> need to specify -lm. What does objdump -p say about your libavutil.so?
> 

The -lm is not needed for the libraries, but for the tool.

> > Anyway, I think it's correct for the libav* to have them private, and I
> > believe it's normal for third party apps to explicitly need to link
> > against libm when they use math functions (even if ffmpeg uses it
> > internally).
> 
> That is true. Unfortunately, that does not explain anything, since this
> particular example does not use math functions.
> 

muxing and decoding_encoding both use sin(), so actually they do.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120413/4ae9b294/attachment.asc>


More information about the ffmpeg-devel mailing list