summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-04-01 20:24:46 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-04-09 08:23:22 -0400
commitf82163cf1c0515a59e6aed9748a17604f892c310 (patch)
treeb10e02e29c362b642963e19db10773be71db5bff /libavcodec/mpeg12.c
parent17ca374c7d09b9f0c102709f2437a3a76de7bad0 (diff)
Use consistent condition for whether to run slice-threading execute function.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 06aa8aba58..3e9f74a696 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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,