diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-04-04 20:04:58 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-04-04 20:04:58 +0000 |
commit | ba56640c30656757c57e9015890c2521d658ea79 (patch) | |
tree | f3e0be8fa0669def10e4c5119323c3d64bd35f01 /libavfilter/avfiltergraph.c | |
parent | f8c77c823cc03b76946c5b97e87e81304d421166 (diff) | |
download | ffmpeg-ba56640c30656757c57e9015890c2521d658ea79.tar.gz |
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.c | 3 |
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; } |