Skip to content

Commit a8d8ade

Browse files
committed
avcodec: disallow hwaccel with frame threads
1 parent c6abb76 commit a8d8ade

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libavcodec/utils.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,12 @@ static int setup_hwaccel(AVCodecContext *avctx,
10061006
AVHWAccel *hwa = find_hwaccel(avctx->codec_id, fmt);
10071007
int ret = 0;
10081008

1009+
if (avctx->active_thread_type & FF_THREAD_FRAME) {
1010+
av_log(avctx, AV_LOG_ERROR,
1011+
"Hardware accelerated decoding with frame threading is not supported.\n");
1012+
return AVERROR(EINVAL);
1013+
}
1014+
10091015
if (!hwa) {
10101016
av_log(avctx, AV_LOG_ERROR,
10111017
"Could not find an AVHWAccel for the pixel format: %s",

0 commit comments

Comments
 (0)