avcodec/vvc_thread: don't use an anonymous union

Should fix compilation with old GCC.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-01-06 16:37:47 -03:00
parent 02d600c568
commit b95ccfcada

View File

@ -54,7 +54,7 @@ typedef struct VVCTask {
union { union {
struct VVCTask *next; //for executor debug only struct VVCTask *next; //for executor debug only
AVTask task; AVTask task;
}; } u;
VVCTaskStage stage; VVCTaskStage stage;
@ -107,7 +107,7 @@ static void add_task(VVCContext *s, VVCTask *t)
atomic_fetch_add(&ft->nb_scheduled_tasks, 1); 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) static void task_init(VVCTask *t, VVCTaskStage stage, VVCFrameContext *fc, const int rx, const int ry)