hevc: delay ff_thread_finish_setup for hwaccel

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/125/head
Rainer Hochecker 10 years ago committed by Michael Niedermayer
parent 22af79a9c8
commit 31816eae32
  1. 3
      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;

Loading…
Cancel
Save