summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-04-04 20:04:58 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-04-04 20:04:58 +0000
commitba56640c30656757c57e9015890c2521d658ea79 (patch)
treef3e0be8fa0669def10e4c5119323c3d64bd35f01 /libavfilter/avfiltergraph.c
parentf8c77c823cc03b76946c5b97e87e81304d421166 (diff)
Fix possible segfault
Commited in SoC by Bobby Bingham on 2007-07-14 23:16:15 Originally committed as revision 12689 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 5211c762e1..d4b6bf1b87 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -112,7 +112,8 @@ int avfilter_graph_load_chain(AVFilterGraph *graph,
fail:
destroy_graph_filters(graph);
- *first = *last = NULL;
+ if(first) *first = NULL;
+ if(last) *last = NULL;
return -1;
}