[FFmpeg-devel] [PATCH][RFC] avcodec: disallow hwaccel with frame threads
Hendrik Leppkes
h.leppkes at gmail.com
Sat Oct 17 21:27:22 CEST 2015
---
libavcodec/utils.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 0e4f3c0..52b480a 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1006,6 +1006,12 @@ 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_ERROR,
+ "Hardware accelerated decoding with frame threading is not supported.\n");
+ return AVERROR(EINVAL);
+ }
+
if (!hwa) {
av_log(avctx, AV_LOG_ERROR,
"Could not find an AVHWAccel for the pixel format: %s",
--
2.5.3.windows.1
More information about the ffmpeg-devel
mailing list