[FFmpeg-cvslog] avcodec/mpeg_er: Don't zero ThreadFrame* unnecessarily
Andreas Rheinhardt
git at videolan.org
Fri May 16 03:14:27 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at 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.rheinhardt at 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;
More information about the ffmpeg-cvslog
mailing list