[FFmpeg-cvslog] r19801 - trunk/libavcodec/svq3.c

michael subversion
Wed Sep 9 23:44:48 CEST 2009


Author: michael
Date: Wed Sep  9 23:44:48 2009
New Revision: 19801

Log:
Check thread count as multithreaded decoding is not supported.
Fixes issue1292

Modified:
   trunk/libavcodec/svq3.c

Modified: trunk/libavcodec/svq3.c
==============================================================================
--- trunk/libavcodec/svq3.c	Wed Sep  9 23:00:51 2009	(r19800)
+++ trunk/libavcodec/svq3.c	Wed Sep  9 23:44:48 2009	(r19801)
@@ -784,6 +784,11 @@ static av_cold int svq3_decode_init(AVCo
     unsigned char *extradata;
     unsigned int size;
 
+    if(avctx->thread_count > 1){
+        av_log(avctx, AV_LOG_ERROR, "SVQ3 does not support multithreaded decoding, patch welcome! (check latest SVN too)\n");
+        return -1;
+    }
+
     if (decode_init(avctx) < 0)
         return -1;
 



More information about the ffmpeg-cvslog mailing list