Message ID | 20220323155720.20017-7-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 28b8b41e5acecdb0c2e5f7a3b69c14706548aa0a |
Headers | show |
Series | [FFmpeg-devel,1/8] lavc/avcodec: simplify codec id/type validity checking | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index aa971bd74d..4ae1c02f62 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -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;