lavc/hevcdec: fix invalid use of ff_get_format()
authorClément Bœsch <u@pkh.me>
Wed, 26 Apr 2017 15:35:28 +0000 (17:35 +0200)
committerClément Bœsch <u@pkh.me>
Wed, 26 Apr 2017 15:35:28 +0000 (17:35 +0200)
Regression since 76cc100afba25308eaa909acd8804cc0b42057f6.

Spotted-by: James Almer <jamrial@gmail.com>
libavcodec/hevcdec.c

index b698c0b..2fb08d8 100644 (file)
@@ -367,7 +367,7 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
     *fmt++ = sps->pix_fmt;
     *fmt = AV_PIX_FMT_NONE;
 
-    return ff_get_format(s->avctx, pix_fmts);
+    return ff_thread_get_format(s->avctx, pix_fmts);
 }
 
 static int set_sps(HEVCContext *s, const HEVCSPS *sps,