diff mbox series

[FFmpeg-devel,086/134] avcodec/lagarith: Mark decoder as init-threadsafe

Message ID 20201130005454.110441-14-andreas.rheinhardt@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86 warning Failed to apply patch

Commit Message

Andreas Rheinhardt Nov. 30, 2020, 12:54 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/lagarith.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index d81e55cf4c..094a82b96a 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -29,6 +29,7 @@ 
 
 #include "avcodec.h"
 #include "get_bits.h"
+#include "internal.h"
 #include "mathops.h"
 #include "lagarithrac.h"
 #include "lossless_videodsp.h"
@@ -721,4 +722,5 @@  AVCodec ff_lagarith_decoder = {
     .init           = lag_decode_init,
     .decode         = lag_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };