diff mbox

[FFmpeg-devel,9/9] avcodec: remove warning against using frame threading with hwaccels

Message ID 20170318085606.26011-10-nfxjfg@googlemail.com
State Accepted
Commit 66963d4b8d302611553e7928063c1cb2ff0efdff
Headers show

Commit Message

wm4 March 18, 2017, 8:56 a.m. UTC
libavcodec now automatically serializes decoding for hwaccels which
are not thread-safe. This means API users, which rely on the libavcodec
native software fallback mechanism, can now simply enable threading
without running into problems.
---
 libavcodec/utils.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox

Patch

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 6f7b2e7af7..a74afc354e 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1076,11 +1076,6 @@  static int setup_hwaccel(AVCodecContext *avctx,
     AVHWAccel *hwa = find_hwaccel(avctx->codec_id, fmt);
     int ret        = 0;
 
-    if (avctx->active_thread_type & FF_THREAD_FRAME) {
-        av_log(avctx, AV_LOG_WARNING,
-               "Hardware accelerated decoding with frame threading is known to be unstable and its use is discouraged.\n");
-    }
-
     if (!hwa) {
         av_log(avctx, AV_LOG_ERROR,
                "Could not find an AVHWAccel for the pixel format: %s",