Commit 66963d4b authored by wm4's avatar wm4

avcodec: remove warning against using frame threading with hwaccels

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.
parent 2e5c5289
...@@ -1076,11 +1076,6 @@ static int setup_hwaccel(AVCodecContext *avctx, ...@@ -1076,11 +1076,6 @@ static int setup_hwaccel(AVCodecContext *avctx,
AVHWAccel *hwa = find_hwaccel(avctx->codec_id, fmt); AVHWAccel *hwa = find_hwaccel(avctx->codec_id, fmt);
int ret = 0; 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) { if (!hwa) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Could not find an AVHWAccel for the pixel format: %s", "Could not find an AVHWAccel for the pixel format: %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment