ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to