mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +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:
parent
2cb86cd00c
commit
28b8b41e5a
@ -791,7 +791,7 @@ static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,
|
|||||||
p->parent = fctx;
|
p->parent = fctx;
|
||||||
p->avctx = copy;
|
p->avctx = copy;
|
||||||
|
|
||||||
copy->internal = av_memdup(avctx->internal, sizeof(*avctx->internal));
|
copy->internal = av_mallocz(sizeof(*copy->internal));
|
||||||
if (!copy->internal)
|
if (!copy->internal)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
copy->internal->thread_ctx = p;
|
copy->internal->thread_ctx = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user