Mercurial > libavcodec.hg
changeset 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 | 29cedcc646fe |
children | ed85bbd5dccb |
files | svq3.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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;