1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-27 15:14:02 +01:00
parent 3792cf52af
commit 476c70164e

View File

@ -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;