[FFmpeg-cvslog] Use consistent condition for whether to run slice-threading execute function .

Reimar Döffinger git at videolan.org
Mon Mar 28 23:11:23 CEST 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Mar 27 14:38:21 2011 +0200| [e9ccdae09b1913fa2427c2a7f87a5ba6ce8c5d60] | committer: Reimar Döffinger

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9ccdae09b1913fa2427c2a7f87a5ba6ce8c5d60
---

 libavcodec/mpeg12.c |    2 +-
 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,



More information about the ffmpeg-cvslog mailing list