[FFmpeg-cvslog] graphparser: set next to NULL on an entry extracted from inputs list
Anton Khirnov
git at videolan.org
Tue Apr 17 12:27:17 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Apr 15 21:08:37 2012 +0200| [aff01de6415f1ba022f1a58e354ad6e4d0796e97] | committer: Anton Khirnov
graphparser: set next to NULL on an entry extracted from inputs list
Prevents it from referring to the rest of the list.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aff01de6415f1ba022f1a58e354ad6e4d0796e97
---
libavfilter/graphparser.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index f318984..b3f295f 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -229,9 +229,10 @@ static int link_filter_inouts(AVFilterContext *filt_ctx,
for (pad = 0; pad < filt_ctx->input_count; pad++) {
AVFilterInOut *p = *curr_inputs;
- if (p)
+ if (p) {
*curr_inputs = (*curr_inputs)->next;
- else if (!(p = av_mallocz(sizeof(*p))))
+ p->next = NULL;
+ } else if (!(p = av_mallocz(sizeof(*p))))
return AVERROR(ENOMEM);
if (p->filter_ctx) {
More information about the ffmpeg-cvslog
mailing list