You've already forked FFmpeg
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user