projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use consistent condition for whether to run slice-threading execute function.
[ffmpeg.git]
/
libavcodec
/
mpeg12.c
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index
06aa8ab
..
3e9f74a
100644
(file)
--- 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,