[FFmpeg-devel] Fwd: [PATCH] avcodec: allow hardware decoding with multithread for FFmpeg
Stève Lhomme
robux4 at videolabs.io
Wed Jul 27 19:43:58 EEST 2016
Hello fellow FFmpegers,
Is there still an issue with hardware decoding when combined with
multithread ? It seems to work fine on our Windows build. Although we
have a mutex in place in the D3D11 variant of the code that may help.
It mostly protects the video context...
If necessary we can have the same trick for DXVA2 if there are still
known issues.
Steve
---------- Forwarded message ----------
From: Steve Lhomme <robux4 at videolabs.io>
Date: Wed, Jul 27, 2016 at 4:43 PM
Subject: [PATCH] avcodec: allow hardware decoding with multithread for FFmpeg
To: vlc-devel at videolan.org
The context is protected by a mutex.
---
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 0c10f9e..bbf3ebb 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1233,7 +1233,7 @@ static enum PixelFormat ffmpeg_GetFormat(
AVCodecContext *p_context,
if (!can_hwaccel)
return swfmt;
-#if (LIBAVCODEC_VERSION_MICRO >= 100) /* FFmpeg only */
+#if (LIBAVCODEC_VERSION_MICRO >= 100) && !defined(_WIN32) /* FFmpeg only */
if (p_context->active_thread_type)
{
msg_Warn(p_dec, "thread type %d: disabling hardware acceleration",
--
2.8.2
More information about the ffmpeg-devel
mailing list