git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46027c7
)
Use consistent condition for whether to run slice-threading execute function.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 27 Mar 2011 12:38:21 +0000
(14:38 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 28 Mar 2011 21:08:07 +0000
(23:08 +0200)
libavcodec/mpeg12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index
5db24e8
..
7034a91
100644
(file)
--- 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,