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
441 return NULL;441 return NULL;
442 }442 }
443 443
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 }
445 } else448 } else
446 qsv_frame->frame = av_frame_clone(picref);449 qsv_frame->frame = av_frame_clone(picref);
447 450

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