[FFmpeg-devel] [PATCH] lavfi/qsvvpp: check return value for av_frame_copy_props
Linjie Fu
linjie.fu at intel.com
Tue Jan 21 10:49:46 EET 2020
Signed-off-by: Linjie Fu <linjie.fu at intel.com>
---
libavfilter/qsvvpp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index 8d5ff2e..0006f48 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -311,12 +311,11 @@ static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *p
qsv_frame->frame->width = picref->width;
qsv_frame->frame->height = picref->height;
- if (av_frame_copy(qsv_frame->frame, picref) < 0) {
+ if (av_frame_copy(qsv_frame->frame, picref) < 0 ||
+ av_frame_copy_props(qsv_frame->frame, picref) < 0) {
av_frame_free(&qsv_frame->frame);
return NULL;
}
-
- av_frame_copy_props(qsv_frame->frame, picref);
} else
qsv_frame->frame = av_frame_clone(picref);
--
2.7.4
More information about the ffmpeg-devel
mailing list