You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libavfilter/qsvvpp: check the return value
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
committed by
Haihao Xiang
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);
|
||||
|
||||
|
Reference in New Issue
Block a user