[FFmpeg-devel] [PATCH 23/47] avcodec/mpegvideo: Don't reset thread_context ptrs unnecessarily
Andreas Rheinhardt
ffmpegagent at gmail.com
Sun Jun 15 19:54:14 EEST 2025
From: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
They are freed with av_freep(), so the pointers are already consistent.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
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;
--
ffmpeg-codebot
More information about the ffmpeg-devel
mailing list