[FFmpeg-cvslog] libavfilter/qsvvpp: check the return value

Wenbin Chen git at videolan.org
Thu Feb 16 06:25:33 EET 2023


ffmpeg | branch: master | Wenbin Chen <wenbin.chen at intel.com> | Wed Feb  8 16:04:50 2023 +0800| [b7a335c5e9d2cd47dc8adeca2edc6714fa2d2996] | committer: Haihao Xiang

libavfilter/qsvvpp: check the return value

Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7a335c5e9d2cd47dc8adeca2edc6714fa2d2996
---

 libavfilter/qsvvpp.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list