Message ID | 1579596586-25100-1-git-send-email-linjie.fu@intel.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] lavfi/qsvvpp: check return value for av_frame_copy_props | expand |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | success | Make fate finished |
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);
Signed-off-by: Linjie Fu <linjie.fu@intel.com> --- libavfilter/qsvvpp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)