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
This commit is contained in:
Vitor Sessak 2008-04-04 20:04:58 +00:00
parent f8c77c823c
commit ba56640c30
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}