]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: remove warning against using frame threading with hwaccels
authorwm4 <nfxjfg@googlemail.com>
Sat, 18 Mar 2017 08:49:20 +0000 (09:49 +0100)
committerwm4 <nfxjfg@googlemail.com>
Tue, 21 Mar 2017 05:17:43 +0000 (06:17 +0100)
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

index 9b055d2b3ebde639677698921722c8a515cd0b62..365ee260565c8663c5e4ec208877655c43c8dcb2 100644 (file)
@@ -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",