summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-04-26 17:35:28 +0200
committerClément Bœsch <u@pkh.me>2017-04-26 17:35:28 +0200
commit78a5fc4579deb63e1e6b93cd4d6e2ec2dceff931 (patch)
tree41ee47e6e5afa79b48f9161a633aece9c88e05db /libavcodec/hevcdec.c
parent540b8760e84cda1ecab807c808e61a4cfaa1783c (diff)
lavc/hevcdec: fix invalid use of ff_get_format()
Regression since 76cc100afba25308eaa909acd8804cc0b42057f6. Spotted-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index b698c0bbc7..2fb08d81d2 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -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,