Added extern "C" to fix build issues under OSX

This commit is contained in:
Robert Osfield
2011-06-17 12:57:31 +00:00
parent dd2a3a509e
commit c6f4c26e31

View File

@@ -8,7 +8,11 @@
#if LIBAVCODEC_VERSION_MAJOR >= 53 || \
(LIBAVCODEC_VERSION_MAJOR==52 && LIBAVCODEC_VERSION_MINOR>=49)
#include <pixdesc.h>
extern "C"
{
#include <pixdesc.h>
}
inline PixelFormat osg_av_get_pix_fmt(const char *name) { return av_get_pix_fmt(name); }
#else