[FFmpeg-cvslog] r13287 - trunk/libavfilter/graphparser.c
vitor
subversion
Sat May 24 22:38:15 CEST 2008
Author: vitor
Date: Sat May 24 22:38:15 2008
New Revision: 13287
Log:
Handle av_realloc() failure
Commited in SoC by Vitor Sessak on 2008-04-04 15:35:38
Modified:
trunk/libavfilter/graphparser.c
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c (original)
+++ trunk/libavfilter/graphparser.c Sat May 24 22:38:15 2008
@@ -56,7 +56,10 @@ static int create_filter(AVFilterGraph *
"error creating filter '%s'\n", name);
return -1;
}
- avfilter_graph_add_filter(ctx, filt);
+
+ if (avfilter_graph_add_filter(ctx, filt) < 0)
+ return -1;
+
if(avfilter_init_filter(filt, args, NULL)) {
av_log(&log_ctx, AV_LOG_ERROR,
"error initializing filter '%s'\n", name);
More information about the ffmpeg-cvslog
mailing list