[FFmpeg-soc] [soc]: r424 - libavfilter/avfiltergraph.c

koorogi subversion at mplayerhq.hu
Sun Jul 15 01:16:15 CEST 2007


Author: koorogi
Date: Sun Jul 15 01:16:15 2007
New Revision: 424

Log:
Fix possible segfault


Modified:
   libavfilter/avfiltergraph.c

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Sun Jul 15 01:16:15 2007
@@ -112,7 +112,8 @@ int avfilter_graph_load_chain(AVFilterGr
 
 fail:
     destroy_graph_filters(graph);
-    *first = *last = NULL;
+    if(first) *first = NULL;
+    if(last)  *last  = NULL;
     return -1;
 }
 



More information about the FFmpeg-soc mailing list