History

all: Use av_frame_replace() where appropriate

Andreas Rheinhardt committed 3 years ago

Commit cfa47fd1 parent 048778631 files · +34 −67Browse files

Showing the changes to libavcodec/bink.c (1 of 31 files). Show all

Unified · Split

libavcodec/bink.c+1−2
@@ -1300,8 +1300,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, · 1299 unmodified lines
13001300 emms_c();
13011301
13021302 if (c->version > 'b') {
1303− av_frame_unref(c->last);
1304− if ((ret = av_frame_ref(c->last, frame)) < 0)
1303+ if ((ret = av_frame_replace(c->last, frame)) < 0)
13051304 return ret;
13061305 }
13071306

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