[vlc-devel] FFmpeg includes

Jean-Baptiste Kempf jb at videolan.org
Tue Mar 11 09:06:19 CET 2008


On Tue, Mar 11, 2008, Jean-Paul Saman wrote :
> Your patch is wrong. Just use the same as in the master branch:
> 
> #ifdef HAVE_LIBAVCODEC_AVCODEC_H
> #   include <libavcodec/avcodec.h>
> #elif defined(HAVE_FFMPEG_AVCODEC_H)
> #   include <ffmpeg/avcodec.h>
> #else
> #   include <avcodec.h>
> #endif
Yes, this doesn't work on master branch, in my trunk if I use ffmpeg
with ffmpeg-tree and not preinstalled.

Here is why:
HAVE_LIBAVCODEC_AVCODEC_H and HAVE_FFMPEG_AVCODEC_H are not defined in
configure.ac if you use ffmpeg-tree.

Therefore, it goes to the last part...
but <avcodec.h> is not in any normal include tree then since it is in 
libavcodec/

> And patch your configure.ac to detect the libavcodec/avcodec.h
How ? I don't get how to tell AC_CHECK_HEADERS to look inside
$(real_ffmpeg_tree)

There is something I don't get then...

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list