aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-09-09 21:44:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-09-09 21:44:48 +0000
commite43198af4f1d42f847eea533f39717f8b9e5a93b (patch)
treef6e4183ee4d39e8d3794c89fe78f369ad5a6636e /libavcodec/svq3.c
parent30715d4273223c8192bc16d3c234cebff72179da (diff)
downloadffmpeg-e43198af4f1d42f847eea533f39717f8b9e5a93b.tar.gz
Check thread count as multithreaded decoding is not supported.
Fixes issue1292 Originally committed as revision 19801 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 87176479b2..9598a14db4 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -784,6 +784,11 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
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;