From 275d7a81e0d3526933f17ace764afa58a2b7eb73 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 27 Nov 2020 15:51:26 +0100 Subject: [PATCH] avcodec/on2avc: Mark decoder as init-threadsafe Signed-off-by: Andreas Rheinhardt --- libavcodec/on2avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index 2ab67350ca..fa3eb4b219 100644 --- a/libavcodec/on2avc.c +++ b/libavcodec/on2avc.c @@ -1012,7 +1012,7 @@ const AVCodec ff_on2avc_decoder = { .decode = on2avc_decode_frame, .close = on2avc_decode_close, .capabilities = AV_CODEC_CAP_DR1, - .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, };