[FFmpeg-cvslog] r12689 - trunk/libavfilter/avfiltergraph.c

vitor subversion
Fri Apr 4 22:04:59 CEST 2008


Author: vitor
Date: Fri Apr  4 22:04:58 2008
New Revision: 12689

Log:
Fix possible segfault

Commited in SoC by Bobby Bingham on 2007-07-14 23:16:15


Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	(original)
+++ trunk/libavfilter/avfiltergraph.c	Fri Apr  4 22:04:58 2008
@@ -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-cvslog mailing list