# HG changeset patch # User rathann # Date 1167533094 0 # Node ID bf1fbe97cc400da187d362e96ab26ceba0ddfc08 # Parent 3af036ae3c75256bce84f113823bd1d3a7eea904 Fix build with shared libavutil. Approved by Diego. diff -r 3af036ae3c75 -r bf1fbe97cc40 fmt-conversion.h --- a/fmt-conversion.h Sat Dec 30 22:43:12 2006 +0000 +++ b/fmt-conversion.h Sun Dec 31 02:44:54 2006 +0000 @@ -1,4 +1,8 @@ +#ifdef USE_LIBAVUTIL_SO +#include +#else #include "avutil.h" +#endif #include "img_format.h" enum PixelFormat imgfmt2pixfmt(int fmt) diff -r 3af036ae3c75 -r bf1fbe97cc40 libmpcodecs/vf_sab.c --- a/libmpcodecs/vf_sab.c Sat Dec 30 22:43:12 2006 +0000 +++ b/libmpcodecs/vf_sab.c Sun Dec 31 02:44:54 2006 +0000 @@ -29,7 +29,11 @@ #include #endif +#ifdef USE_LIBAVUTIL_SO +#include +#else #include "avutil.h" +#endif #include "img_format.h" #include "mp_image.h" #include "vf.h" diff -r 3af036ae3c75 -r bf1fbe97cc40 libmpcodecs/vf_smartblur.c --- a/libmpcodecs/vf_smartblur.c Sat Dec 30 22:43:12 2006 +0000 +++ b/libmpcodecs/vf_smartblur.c Sun Dec 31 02:44:54 2006 +0000 @@ -29,7 +29,11 @@ #include #endif +#ifdef USE_LIBAVUTIL_SO +#include +#else #include "avutil.h" +#endif #include "img_format.h" #include "mp_image.h" #include "vf.h" diff -r 3af036ae3c75 -r bf1fbe97cc40 spudec.c --- a/spudec.c Sat Dec 30 22:43:12 2006 +0000 +++ b/spudec.c Sun Dec 31 02:44:54 2006 +0000 @@ -23,7 +23,11 @@ #include #include "libvo/video_out.h" #include "spudec.h" +#ifdef USE_LIBAVUTIL_SO +#include +#else #include "avutil.h" +#endif #include "libswscale/swscale.h" #define MIN(a, b) ((a)<(b)?(a):(b))