diff svq3.c @ 10151:6cd8b6fd5f0f libavcodec

Check thread count as multithreaded decoding is not supported. Fixes issue1292
author michael
date Wed, 09 Sep 2009 21:44:48 +0000
parents 38cfe222e1a4
children fc06fc944c6d
line wrap: on
line diff
--- a/svq3.c	Tue Sep 08 19:25:54 2009 +0000
+++ b/svq3.c	Wed Sep 09 21:44:48 2009 +0000
@@ -784,6 +784,11 @@
     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;