diff mbox series

[FFmpeg-devel,1/2] avcodec/vvc: Use static const for function table

Message ID tencent_88151C660B81A635D08526FAE7D0AAB05306@qq.com
State New
Headers show
Series [FFmpeg-devel,1/2] avcodec/vvc: Use static const for function table | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Zhao Zhili July 8, 2024, 7:40 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

---
 libavcodec/vvc/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Nuo Mi July 8, 2024, 1:24 p.m. UTC | #1
LGTM
thank you, Zhili.

On Mon, Jul 8, 2024 at 3:40 PM Zhao Zhili <quinkblack@foxmail.com> wrote:

> From: Zhao Zhili <zhilizhao@tencent.com>
>
> ---
>  libavcodec/vvc/thread.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/vvc/thread.c b/libavcodec/vvc/thread.c
> index 0cacb1f51c..8dd9a36fd5 100644
> --- a/libavcodec/vvc/thread.c
> +++ b/libavcodec/vvc/thread.c
> @@ -565,7 +565,7 @@ static void task_run_stage(VVCTask *t, VVCContext *s,
> VVCLocalContext *lc)
>      VVCFrameContext *fc      = t->fc;
>      VVCFrameThread *ft       = fc->ft;
>      const VVCTaskStage stage = t->stage;
> -    run_func run[] = {
> +    static const run_func run[] = {
>          run_parse,
>          run_inter,
>          run_recon,
> --
> 2.42.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
Nuo Mi July 11, 2024, 12:32 p.m. UTC | #2
applied, thx

On Mon, Jul 8, 2024 at 9:24 PM Nuo Mi <nuomi2021@gmail.com> wrote:

> LGTM
> thank you, Zhili.
>
> On Mon, Jul 8, 2024 at 3:40 PM Zhao Zhili <quinkblack@foxmail.com> wrote:
>
>> From: Zhao Zhili <zhilizhao@tencent.com>
>>
>> ---
>>  libavcodec/vvc/thread.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/libavcodec/vvc/thread.c b/libavcodec/vvc/thread.c
>> index 0cacb1f51c..8dd9a36fd5 100644
>> --- a/libavcodec/vvc/thread.c
>> +++ b/libavcodec/vvc/thread.c
>> @@ -565,7 +565,7 @@ static void task_run_stage(VVCTask *t, VVCContext *s,
>> VVCLocalContext *lc)
>>      VVCFrameContext *fc      = t->fc;
>>      VVCFrameThread *ft       = fc->ft;
>>      const VVCTaskStage stage = t->stage;
>> -    run_func run[] = {
>> +    static const run_func run[] = {
>>          run_parse,
>>          run_inter,
>>          run_recon,
>> --
>> 2.42.0
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>>
>
diff mbox series

Patch

diff --git a/libavcodec/vvc/thread.c b/libavcodec/vvc/thread.c
index 0cacb1f51c..8dd9a36fd5 100644
--- a/libavcodec/vvc/thread.c
+++ b/libavcodec/vvc/thread.c
@@ -565,7 +565,7 @@  static void task_run_stage(VVCTask *t, VVCContext *s, VVCLocalContext *lc)
     VVCFrameContext *fc      = t->fc;
     VVCFrameThread *ft       = fc->ft;
     const VVCTaskStage stage = t->stage;
-    run_func run[] = {
+    static const run_func run[] = {
         run_parse,
         run_inter,
         run_recon,