From 31816eae32019ff0e2243533f618efa2a4da9c33 Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Thu, 12 Mar 2015 14:08:25 +0100 Subject: [PATCH] hevc: delay ff_thread_finish_setup for hwaccel Signed-off-by: Michael Niedermayer --- libavcodec/hevc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index fdbaa28a97..b7ad29a081 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2600,7 +2600,8 @@ static int hevc_frame_start(HEVCContext *s) if (ret < 0) goto fail; - ff_thread_finish_setup(s->avctx); + if (!s->avctx->hwaccel) + ff_thread_finish_setup(s->avctx); return 0;