1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavc/pthread_frame: do not copy AVCodecInternal contents

None of its fields have meaningful values at that point that would need
to be copied to frame thread workers.
This commit is contained in:
Anton Khirnov 2022-03-23 16:30:01 +01:00
parent 2cb86cd00c
commit 28b8b41e5a

View File

@ -791,7 +791,7 @@ static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,
p->parent = fctx;
p->avctx = copy;
copy->internal = av_memdup(avctx->internal, sizeof(*avctx->internal));
copy->internal = av_mallocz(sizeof(*copy->internal));
if (!copy->internal)
return AVERROR(ENOMEM);
copy->internal->thread_ctx = p;