[FFmpeg-devel] [PATCH 1/3] avfilter/vf_guided: Don't free frame we don't own

Steven Liu lq at chinaffmpeg.org
Fri May 14 15:21:52 EEST 2021



> 2021年5月14日 下午6:18,Andreas Rheinhardt <andreas.rheinhardt at outlook.com> 写道:
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavfilter/vf_guided.c | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c
> index e7c689e7be..e10d397f2e 100644
> --- a/libavfilter/vf_guided.c
> +++ b/libavfilter/vf_guided.c
> @@ -329,7 +329,6 @@ static int process_frame(FFFrameSync *fs)
>     out_frame = ff_get_video_buffer(outlink, outlink->w, outlink->h);
>     if (!out_frame) {
>         av_frame_free(&main_frame);
> -        av_frame_free(&ref_frame);
>         return AVERROR(ENOMEM);
>     }
>     av_frame_copy_props(out_frame, main_frame);
> -- 
> 2.27.0
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> 
Looks simply  after patchset, lgtm

Thanks

Steven Liu





More information about the ffmpeg-devel mailing list