Index: libavcodec/pthread.c |
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c |
index 6ae763da8045e839b3859ad65f8cb5117b6bd871..e90a0a02888602e7993d093b01d0bcfbf285e9cb 100644 |
--- a/libavcodec/pthread.c |
+++ b/libavcodec/pthread.c |
@@ -610,6 +610,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx, |
* Submit a packet to the next decoding thread. |
*/ |
+ if (fctx->next_decoding >= avctx->thread_count) return err; |
DaleCurtis
2012/02/09 22:43:26
Proper fix is likely related to acolwell's threadi
rbultje1
2012/02/09 23:28:46
This looks really evil, I'm OK with the workaround
DaleCurtis
2012/02/10 00:04:01
I've commented on valgrind.txt to link each test f
|
p = &fctx->threads[fctx->next_decoding]; |
err = update_context_from_user(p->avctx, avctx); |
if (err) return err; |