avcodec/sonic: Mark decoder as init-threadsafe

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-12-01 00:33:19 +01:00 committed by Andreas Rheinhardt
parent 0878ccdcd2
commit 30a947b8f8

View File

@ -1080,7 +1080,7 @@ const AVCodec ff_sonic_decoder = {
.close = sonic_decode_close, .close = sonic_decode_close,
.decode = sonic_decode_frame, .decode = sonic_decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_CHANNEL_CONF, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_CHANNEL_CONF,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
}; };
#endif /* CONFIG_SONIC_DECODER */ #endif /* CONFIG_SONIC_DECODER */