summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-03-27 14:38:21 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-03-28 23:08:07 +0200
commite9ccdae09b1913fa2427c2a7f87a5ba6ce8c5d60 (patch)
treef8e0f51de121e08ed6a7b2fd78218f9029f5ee4b /libavcodec
parent46027c7286144294dee565946dccb59f1a8dfeca (diff)
downloadffmpeg-streaming-e9ccdae09b1913fa2427c2a7f87a5ba6ce8c5d60.zip
ffmpeg-streaming-e9ccdae09b1913fa2427c2a7f87a5ba6ce8c5d60.tar.gz
Use consistent condition for whether to run slice-threading execute function.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 5db24e8..7034a91 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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,
OpenPOWER on IntegriCloud