From a0c0900e470fde0d6db360e555620476c2323895 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 27 Apr 2013 22:24:14 +0200 Subject: ffv1dec: Support frame threading with gop > 1 This is about 20-30% faster than slice threading Signed-off-by: Michael Niedermayer --- libavcodec/pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/pthread.c') diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 516e5fcfd0..6942c1ebf1 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -652,7 +652,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx, */ if (fctx->delaying) { - if (fctx->next_decoding >= (avctx->thread_count-1)) fctx->delaying = 0; + if (fctx->next_decoding >= (avctx->thread_count-1-(avctx->codec_id == AV_CODEC_ID_FFV1))) fctx->delaying = 0; *got_picture_ptr=0; if (avpkt->size) -- cgit v1.2.3