Commit 61e462a3 authored by michael's avatar michael

Check thread count as multithreaded decoding is not supported.

Fixes issue1292


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19801 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 018eb2c1
...@@ -784,6 +784,11 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) ...@@ -784,6 +784,11 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
unsigned char *extradata; unsigned char *extradata;
unsigned int size; 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) if (decode_init(avctx) < 0)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment