Browse Source

Check thread count as multithreaded decoding is not supported.

Fixes issue1292

Originally committed as revision 19801 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 15 years ago
parent
commit
e43198af4f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/svq3.c

+ 5
- 0
libavcodec/svq3.c View File

@@ -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;



Loading…
Cancel
Save