History

libavfilter/qsvvpp: check the return value

Wenbin Chen committed 3 years ago

Commit b7a335c1 parent 0f407cd1 file · +4 −1Browse files

Unified · Split

libavfilter/qsvvpp.c+4−1
@@ -441,7 +441,10 @@ static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *p · 440 unmodified lines
441441 return NULL;
442442 }
443443
444− av_frame_copy_props(qsv_frame->frame, picref);
444+ if (av_frame_copy_props(qsv_frame->frame, picref) < 0) {
445+ av_frame_free(&qsv_frame->frame);
446+ return NULL;
447+ }
445448 } else
446449 qsv_frame->frame = av_frame_clone(picref);
447450

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