[vlc-devel] [PATCH 2/2] avcodec: remove unecessary check for thread safety on safe libavcodec builds
Steve Lhomme
robux4 at videolabs.io
Tue Mar 21 11:27:59 CET 2017
Technically there's not a version set after Anton's patches merge in FFmpeg yet
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 570d8e101b..f49e82db2f 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1348,7 +1348,7 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
if (!can_hwaccel)
return swfmt;
-#if (LIBAVCODEC_VERSION_MICRO >= 100) /* FFmpeg only */
+#if !LIBAVCODEC_VERSION_CHECK(57, 30, 1, 83, 101)
if (p_context->active_thread_type)
{
msg_Warn(p_dec, "thread type %d: disabling hardware acceleration",
--
2.11.1
More information about the vlc-devel
mailing list