| 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;
|
| p = &fctx->threads[fctx->next_decoding];
|
| err = update_context_from_user(p->avctx, avctx);
|
| if (err) return err;
|
|
|