diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-20 00:58:00 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-20 09:34:57 +0200 |
commit | 0d65e0f8cb0f924be95650f50f3d05d0b223aceb (patch) | |
tree | a358d57810ee809b3e893c248f2d278e55130fe2 /cmdutils.c | |
parent | 328810390d0458b7c8200342a87f238f7610b776 (diff) | |
download | ffmpeg-0d65e0f8cb0f924be95650f50f3d05d0b223aceb.tar.gz |
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.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |