Message ID | 20210514025409.35502-1-liuqi05@kuaishou.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/vf_guided: add null pointer check of ref_frame and main_frame | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c index e7c689e7be..0868b9cd4f 100644 --- a/libavfilter/vf_guided.c +++ b/libavfilter/vf_guided.c @@ -334,7 +334,7 @@ static int process_frame(FFFrameSync *fs) } av_frame_copy_props(out_frame, main_frame); - if (ctx->is_disabled || !ref_frame) { + if ((ctx->is_disabled || !ref_frame) && ref_frame && main_frame) { av_frame_copy_props(ref_frame, main_frame); }
fix CID: 1484785 check ref_frame and main_frame before use them Signed-off-by: Steven Liu <liuqi05@kuaishou.com> --- libavfilter/vf_guided.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)