git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix possible segfault
[ffmpeg.git]
/
libavfilter
/
avfiltergraph.c
diff --git
a/libavfilter/avfiltergraph.c
b/libavfilter/avfiltergraph.c
index
5211c76
..
d4b6bf1
100644
(file)
--- 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;
}