From b4e713598659fe02b5eb874cc9693b9ec8ed0423 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 13 Jun 2025 00:46:37 +0200 Subject: [PATCH] avcodec/mpegvideo: Don't reset thread_context ptrs unnecessarily They are freed with av_freep(), so the pointers are already consistent. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index f3e4d4c386..84736f8b5b 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -427,7 +427,6 @@ av_cold int ff_mpv_common_init(MpegEncContext *s) } s->context_initialized = 1; - memset(s->thread_context, 0, sizeof(s->thread_context)); s->thread_context[0] = s; s->slice_context_count = nb_slices;