libavfilter/qsvvpp: check the return value
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
parent
0f407cdea2
commit
b7a335c5e9
@ -441,7 +441,10 @@ static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *p
|
||||
return NULL;
|
||||
}
|
||||
|
||||
av_frame_copy_props(qsv_frame->frame, picref);
|
||||
if (av_frame_copy_props(qsv_frame->frame, picref) < 0) {
|
||||
av_frame_free(&qsv_frame->frame);
|
||||
return NULL;
|
||||
}
|
||||
} else
|
||||
qsv_frame->frame = av_frame_clone(picref);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user