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

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Reimar Döffinger 2011-04-01 20:24:46 -04:00 committed by Ronald S. Bultje
parent 17ca374c7d
commit f82163cf1c

View File

@ -2301,7 +2301,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,