From 0d65e0f8cb0f924be95650f50f3d05d0b223aceb Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 20 May 2011 00:58:00 +0200 Subject: cmdutils: reset *picref_ptr to NULL in get_filtered_frame() Avoid the presence of an invalid pointer, fix a crash in case of get_filtered_frame() failure. --- cmdutils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index a5363b8176..71d6d33454 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -908,6 +908,7 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame, { int ret; AVFilterBufferRef *picref; + *picref_ptr = NULL; if ((ret = avfilter_request_frame(ctx->inputs[0])) < 0) return ret; -- cgit v1.2.3