]> git.sesse.net Git - vlc/commitdiff
Fixed compilation with avcodec without MT support.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 5 Jun 2011 14:44:08 +0000 (16:44 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 5 Jun 2011 14:44:08 +0000 (16:44 +0200)
modules/codec/avcodec/video.c

index 5b13a5ad8bf941251e1e219d6371614cbc22679b..8cb66ccacc888061926c8fbfb6fada078e1df167 100644 (file)
@@ -349,11 +349,13 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
          i_codec_id == CODEC_ID_H264 ||
          i_codec_id == CODEC_ID_VC1 || i_codec_id == CODEC_ID_WMV3) )
     {
+#ifdef HAVE_AVCODEC_MT
         if( p_sys->p_context->thread_type & FF_THREAD_FRAME )
         {
             msg_Warn( p_dec, "threaded frame decoding is not compatible with ffmpeg-hw, disabled" );
             p_sys->p_context->thread_type &= ~FF_THREAD_FRAME;
         }
+#endif
         p_sys->p_context->get_format = ffmpeg_GetFormat;
     }
 #endif