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;
|
int i;
|
||||||
|
|
||||||
memset(dst, 0, sizeof(*dst));
|
memset(dst, 0, sizeof(*dst));
|
||||||
if (!src) {
|
if (!src)
|
||||||
dst->f = NULL;
|
|
||||||
dst->tf = NULL;
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
dst->f = src->f;
|
dst->f = src->f;
|
||||||
dst->progress = &src->progress;
|
dst->progress = &src->progress;
|
||||||
|
Reference in New Issue
Block a user