Skip to content

Commit

Permalink
avfilter/vf_scale_rga: fix free null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
jjm2473 authored Jun 7, 2023
1 parent 646d556 commit 9892acd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libavfilter/vf_scale_rga.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ static int ff_rga_vpp_config_output(AVFilterLink *outlink)
return 0;

fail:
#ifdef RGA_SW_USE_IMAGE_ALLOC
av_freep(&ctx->sw_frame->data[0]);
#endif
av_frame_free(&ctx->sw_frame);
av_buffer_unref(&ctx->hwframes_ref);
return err;
Expand Down

0 comments on commit 9892acd

Please sign in to comment.