diff options
author | James Almer <jamrial@gmail.com> | 2024-01-06 16:37:47 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-01-06 23:28:03 -0300 |
commit | b95ccfcadabb5a95544d71c206f984a72d03d7f0 (patch) | |
tree | 9ad7fd1a57635d97a7caa5ac197920da5e0251a8 | |
parent | 02d600c568d14a201c776712bc5775e17c59078a (diff) | |
download | ffmpeg-b95ccfcadabb5a95544d71c206f984a72d03d7f0.tar.gz |
avcodec/vvc_thread: don't use an anonymous union
Should fix compilation with old GCC.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/vvc/vvc_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vvc/vvc_thread.c b/libavcodec/vvc/vvc_thread.c index db901585a4..31c931f050 100644 --- a/libavcodec/vvc/vvc_thread.c +++ b/libavcodec/vvc/vvc_thread.c @@ -54,7 +54,7 @@ typedef struct VVCTask { union { struct VVCTask *next; //for executor debug only AVTask task; - }; + } u; VVCTaskStage stage; @@ -107,7 +107,7 @@ static void add_task(VVCContext *s, VVCTask *t) atomic_fetch_add(&ft->nb_scheduled_tasks, 1); - av_executor_execute(s->executor, &t->task); + av_executor_execute(s->executor, &t->u.task); } static void task_init(VVCTask *t, VVCTaskStage stage, VVCFrameContext *fc, const int rx, const int ry) |