]> git.sesse.net Git - vlc/commitdiff
modules/codec/avcodec: Move HAVE_AVCODEC_MT to avcodec.h
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 1 Dec 2010 14:12:37 +0000 (15:12 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 2 Dec 2010 09:34:50 +0000 (10:34 +0100)
The defined HAVE_AVCODEC_MT is used by modules/codec/avcodec/avcodec.c
and modules/codec/avcodec/video.c. It was only defined in modules/codec/avcodec/video.c.

This patch moves the define to modules/codec/avcodec/avcodec.h.

modules/codec/avcodec/avcodec.h
modules/codec/avcodec/video.c

index 0f1cf65f4c5dee3b927e934f2518ba60153232b8..0449f51fa6382c99e0efdb7fd7a9dcb03d35c506 100644 (file)
@@ -268,6 +268,10 @@ int ffmpeg_OpenCodec( decoder_t *p_dec );
 #   define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
 #endif
 
+#if defined(FF_THREAD_FRAME)
+#   define HAVE_AVCODEC_MT
+#endif
+
 /* Uncomment it to enable compilation with vaapi/dxva2 (you also must change the build
  * system) */
 //#define HAVE_AVCODEC_VAAPI 1
index 6d5fd5d5570311e800bf14fd573f7451823c3ba7..85bad6ea9bd0184ae9b593ad29529eca99fc5e73 100644 (file)
@@ -55,9 +55,6 @@
 #if defined(HAVE_AVCODEC_VAAPI) || defined(HAVE_AVCODEC_DXVA2)
 #   define HAVE_AVCODEC_VA
 #endif
-#if defined(FF_THREAD_FRAME)
-#   define HAVE_AVCODEC_MT
-#endif
 
 /*****************************************************************************
  * decoder_sys_t : decoder descriptor