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

Nicolas George nicolas.george at normalesup.org
Fri Apr 13 10:06:59 CEST 2012


Le quintidi 25 germinal, an CCXX, Clément Bœsch a écrit :
> I think there is a misunderstanding; I meant the link fails because the
> tool requires the -lm (because of the sin() dep), it's not an issue with
> the library (libm is indeed in the NEEDED field of the libav*).

Ok. This is a bit unusual but not unheard of, and perfectly acceptable in
fact. I just forgot that sin was used in the code itself.

> So we can unconditionally add -lm in LDFLAGS for decoding_encoding and
> muxing? François seems to raise a portability issue about this.

-lm is standard (although libm itself is not: -lm can be seen as a compiler
flag, not necessarily a library inclusion directive), it should not raise
problems. If there are actual cases, I would like to know the specifics.

> Another solution might be to make use of lavfi/aevalsrc instead, but it
> might uselessly complicates the examples.

That would be rather ugly. Using a square or triangular waveform or anything
similar would be simpler.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list