aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen@intel.com>2023-02-08 16:04:50 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2023-02-16 11:15:50 +0800
commitb7a335c5e9d2cd47dc8adeca2edc6714fa2d2996 (patch)
treef1b0cb3022009fe627f25b0bfe69a3b8a1f4820d
parent0f407cdea291ac39505dd20a81ed63f3ddf34ef1 (diff)
downloadffmpeg-b7a335c5e9d2cd47dc8adeca2edc6714fa2d2996.tar.gz
libavfilter/qsvvpp: check the return value
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
-rw-r--r--libavfilter/qsvvpp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index e181e7b584..54e7284234 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -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);