ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Thu Mar 27 15:14:02 2025 +0100| [476c70164e0f337c886cc3c8fb20ded835a09477] | 
committer: Andreas Rheinhardt

avcodec/mpeg_er: Don't zero ThreadFrame* unnecessarily

We never set the ThreadFrame*, because mpegvideo uses
ThreadProgress instead of ThreadFrames. Furthermore,
it is unnecessary because the ERPicture has just been zeroed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

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

 libavcodec/mpeg_er.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c
index 3cbdeeebec..4b171354c7 100644
--- a/libavcodec/mpeg_er.c
+++ b/libavcodec/mpeg_er.c
@@ -28,11 +28,8 @@ static void set_erpic(ERPicture *dst, const MPVPicture *src)
     int i;
 
     memset(dst, 0, sizeof(*dst));
-    if (!src) {
-        dst->f  = NULL;
-        dst->tf = NULL;
+    if (!src)
         return;
-    }
 
     dst->f = src->f;
     dst->progress = &src->progress;

_______________________________________________
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