diff mbox series

[FFmpeg-devel,17/20] avcodec/twinvqdec: Mark decoder as init-threadsafe

Message ID HE1PR0301MB2154DFDA8AC61C55443FB9908F579@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 06e9e9b2db06cc4473a41bd5391d743025b42ddd
Headers show
Series [FFmpeg-devel,01/20] avcodec/wma: Remove nonsense volatile
Related show

Checks

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

Commit Message

Andreas Rheinhardt May 7, 2021, 6:46 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/twinvqdec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

HouLei May 11, 2021, 5:30 a.m. UTC | #1
?

在 2021/5/7 下午2:46, Andreas Rheinhardt 写道:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>   libavcodec/twinvqdec.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/twinvqdec.c b/libavcodec/twinvqdec.c
> index b972facfdd..1fbe0bc32e 100644
> --- a/libavcodec/twinvqdec.c
> +++ b/libavcodec/twinvqdec.c
> @@ -426,4 +426,5 @@ const AVCodec ff_twinvq_decoder = {
>       .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
>       .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
>                                                         AV_SAMPLE_FMT_NONE },
> +    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
>   };
Andreas Rheinhardt May 11, 2021, 5:38 a.m. UTC | #2
HouLei:
> ?
> 

If you want to ask a question, you should actually ask the question.
(If the question is "Why is this decoder init-threadsafe?", the answer
is: "Because there is no initialization of anything static going on in
its init function (and in function, the decoder in general).".)

> 在 2021/5/7 下午2:46, Andreas Rheinhardt 写道:
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>> ---
>>   libavcodec/twinvqdec.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/libavcodec/twinvqdec.c b/libavcodec/twinvqdec.c
>> index b972facfdd..1fbe0bc32e 100644
>> --- a/libavcodec/twinvqdec.c
>> +++ b/libavcodec/twinvqdec.c
>> @@ -426,4 +426,5 @@ const AVCodec ff_twinvq_decoder = {
>>       .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
>>       .sample_fmts    = (const enum AVSampleFormat[]) {
>> AV_SAMPLE_FMT_FLTP,
>>                                                        
>> AV_SAMPLE_FMT_NONE },
>> +    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
>>   };
>
diff mbox series

Patch

diff --git a/libavcodec/twinvqdec.c b/libavcodec/twinvqdec.c
index b972facfdd..1fbe0bc32e 100644
--- a/libavcodec/twinvqdec.c
+++ b/libavcodec/twinvqdec.c
@@ -426,4 +426,5 @@  const AVCodec ff_twinvq_decoder = {
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
     .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
                                                       AV_SAMPLE_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };