[FFmpeg-cvslog] avcodec/mpegvideo: Don't reset thread_context ptrs unnecessarily

Andreas Rheinhardt git at videolan.org
Sat Jun 21 23:20:48 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Jun 13 00:46:37 2025 +0200| [b4e713598659fe02b5eb874cc9693b9ec8ed0423] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4e713598659fe02b5eb874cc9693b9ec8ed0423
---

 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;
 



More information about the ffmpeg-cvslog mailing list