summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 21:31:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-10 22:12:01 +0200
commite80d35afa8f8718125c2e3b4f3c9df05c4ed618d (patch)
tree240cef92117a9927b64cfbaf4091d18a858661de /libavcodec/vp9.c
parent4818ea69d2dab5e96e7c2c078d804a260d5efcbd (diff)
downloadffmpeg-e80d35afa8f8718125c2e3b4f3c9df05c4ed618d.tar.gz
avcodec/vp9: Mark decoder as init-threadsafe
It only allocates some AVFrames. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 783f446125..874005a5ae 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -1868,7 +1868,7 @@ const AVCodec ff_vp9_decoder = {
.close = vp9_decode_free,
.decode = vp9_decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP |
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP |
FF_CODEC_CAP_SLICE_THREAD_HAS_MF |
FF_CODEC_CAP_ALLOCATE_PROGRESS,
.flush = vp9_decode_flush,