projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30715d4
)
Check thread count as multithreaded decoding is not supported.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 9 Sep 2009 21:44:48 +0000
(21:44 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 9 Sep 2009 21:44:48 +0000
(21:44 +0000)
Fixes issue1292
Originally committed as revision 19801 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/svq3.c
patch
|
blob
|
history
diff --git
a/libavcodec/svq3.c
b/libavcodec/svq3.c
index
8717647
..
9598a14
100644
(file)
--- 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;