libavfilter/qsvvpp: check the return value

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Wenbin Chen 2023-02-08 16:04:50 +08:00 committed by Haihao Xiang
parent 0f407cdea2
commit b7a335c5e9
1 changed files with 4 additions and 1 deletions

View File

@ -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);