summaryrefslogtreecommitdiff
path: root/libavcodec/vp8.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 21:56:28 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-10 22:12:01 +0200
commit37670f7d078adc68804dc3bc3debb67783ae7de6 (patch)
tree977fe3e71e5d53d2774824355e492960a77d05c9 /libavcodec/vp8.c
parente80d35afa8f8718125c2e3b4f3c9df05c4ed618d (diff)
avcodec/vp8: Mark decoders as init-threadsafe
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index b964d2fd2d..a70d94bd82 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2948,6 +2948,7 @@ const AVCodec ff_vp7_decoder = {
.close = ff_vp8_decode_free,
.decode = vp7_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
.flush = vp8_decode_flush,
};
#endif /* CONFIG_VP7_DECODER */
@@ -2964,6 +2965,8 @@ const AVCodec ff_vp8_decoder = {
.decode = ff_vp8_decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS |
AV_CODEC_CAP_SLICE_THREADS,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_ALLOCATE_PROGRESS,
.flush = vp8_decode_flush,
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp8_decode_update_thread_context),
.hw_configs = (const AVCodecHWConfigInternal *const []) {
@@ -2975,6 +2978,5 @@ const AVCodec ff_vp8_decoder = {
#endif
NULL
},
- .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS,
};
#endif /* CONFIG_VP7_DECODER */