Commit e9ccdae0 authored by Reimar Döffinger's avatar Reimar Döffinger

Use consistent condition for whether to run slice-threading execute function.

parent 46027c72
......@@ -2344,7 +2344,7 @@ static int decode_chunks(AVCodecContext *avctx,
break;
case PICTURE_START_CODE:
if (avctx->thread_count > 1 && s->slice_count) {
if (HAVE_THREADS && (avctx->active_thread_type&FF_THREAD_SLICE) && s->slice_count) {
int i;
avctx->execute(avctx, slice_decode_thread,
......
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