History

avfilter: use ff_inlink_make_frame_writable()

Paul B Mahol committed 3 years ago

Commit e506ea31 parent 78f460620 files · +152 −48Browse files

Showing the changes to libavfilter/framesync.c (1 of 20 files). Show all

Unified · Split

libavfilter/framesync.c+1−1
@@ -288,7 +288,7 @@ int ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe, · 287 unmodified lines
288 if (need_copy) {288 if (need_copy) {
289 if (!(frame = av_frame_clone(frame)))289 if (!(frame = av_frame_clone(frame)))
290 return AVERROR(ENOMEM);290 return AVERROR(ENOMEM);
291 if ((ret = av_frame_make_writable(frame)) < 0) {291 if ((ret = ff_inlink_make_frame_writable(fs->parent->inputs[in], &frame) < 0)) {
292 av_frame_free(&frame);292 av_frame_free(&frame);
293 return ret;293 return ret;
294 }294 }

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