Skip to content

Commit

Permalink
libavfilter/qsvvpp: check the return value
Browse files Browse the repository at this point in the history
Signed-off-by: Wenbin Chen <[email protected]>
  • Loading branch information
wenbinc-Bin authored and xhaihao committed Feb 14, 2023
1 parent 2503381 commit fa51c88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libavfilter/qsvvpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fa51c88

Please sign in to comment.