[FFmpeg-devel] [PATCH] drawtext: fix hard dependency to lavc (timecode).
ubitux at gmail.com
Thu Dec 29 15:57:54 CET 2011
On Thu, Dec 29, 2011 at 03:51:40PM +0100, Nicolas George wrote:
> Le nonidi 9 nivôse, an CCXX, Clément Bœsch a écrit :
> > Is it ok to include libavcodec stuff and just avoid calling functions when
> > it is disabled?
> I do not think that building libavfilter separately from the ffmpeg source
> tree is supported: therefore, including any header and using things that are
> completely contained in the headers (structures definitions, macros, inline
> functions, prototypes, etc.) is probably ok.
I wanted to be sure; disabling libavcodec might be done because of a
broken header or so, I don't know.
> As for "avoid calling functions", is is not just that. If you write:
> if (avcodec_enabled)
> then the compiler will generate code to call foo, and the linker will
> complain that foo is not defined. On the other hand, if this time your test
> uses AVCODEC_ENABLED, i.e., a build-time constant, then the compiler will
> just not generate the code to call foo at all.
Yes of course avoid meant removing the function calls from the code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 490 bytes
Desc: not available
More information about the ffmpeg-devel