History

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.

Andreas Rheinhardt committed 1 year ago

Commit 476c7011 parent 3792cf51 file · +1 −4Browse files

Unified · Split

libavcodec/mpeg_er.c+1−4
@@ -28,11 +28,8 @@ static void set_erpic(ERPicture *dst, const MPVPicture *src) · 27 unmodified lines
28 int i;28 int i;
29 29
30 memset(dst, 0, sizeof(*dst));30 memset(dst, 0, sizeof(*dst));
31 if (!src) {31 if (!src)
32 dst->f = NULL;
33 dst->tf = NULL;
34 return;32 return;
35 }
36 33
37 dst->f = src->f;34 dst->f = src->f;
38 dst->progress = &src->progress;35 dst->progress = &src->progress;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t