mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
libavfilter/qsvvpp: check the return value
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
parent
0f407cdea2
commit
b7a335c5e9
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue