diff mbox series

[FFmpeg-devel,30/45] avcodec/sipr: Mark decoder as init-threadsafe

Message ID 20201127010249.2724610-30-andreas.rheinhardt@gmail.com
State Accepted
Commit b3912f8dfda0c0f9aaab9b9fc7f5232fb8ef963f
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 27, 2020, 1:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/sipr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anton Khirnov Dec. 4, 2020, 11:55 a.m. UTC | #1
Quoting Andreas Rheinhardt (2020-11-27 02:02:34)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/sipr.c | 1 +
>  1 file changed, 1 insertion(+)

Looks safe indeed
diff mbox series

Patch

diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 1b6de25fff..ad045a543f 100644
--- a/libavcodec/sipr.c
+++ b/libavcodec/sipr.c
@@ -571,4 +571,5 @@  AVCodec ff_sipr_decoder = {
     .init           = sipr_decoder_init,
     .decode         = sipr_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };