Introduce slice threads flag.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
3283f274fd
commit
94f7451a3a
@@ -877,7 +877,8 @@ static void validate_thread_parameters(AVCodecContext *avctx)
|
||||
avctx->active_thread_type = 0;
|
||||
} else if (frame_threading_supported && (avctx->thread_type & FF_THREAD_FRAME)) {
|
||||
avctx->active_thread_type = FF_THREAD_FRAME;
|
||||
} else if (avctx->thread_type & FF_THREAD_SLICE) {
|
||||
} else if (avctx->codec->capabilities & CODEC_CAP_SLICE_THREADS &&
|
||||
avctx->thread_type & FF_THREAD_SLICE) {
|
||||
avctx->active_thread_type = FF_THREAD_SLICE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user