aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-26 20:05:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-26 20:05:57 +0100
commit3017239d3a6f1c4049394be49ae207cd4475ad53 (patch)
treea99e3006f5f95b039a5b03742f9bf2ff7221972c /libavfilter
parenta44409e692e8f369368215fb16b34749cff0d35c (diff)
downloadffmpeg-3017239d3a6f1c4049394be49ae207cd4475ad53.tar.gz
avfilter/vf_pullup: add comment to explain memset(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_pullup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 73ffa68f8f..9b9064c649 100644
--- a/libavfilter/vf_pullup.c
+++ b/libavfilter/vf_pullup.c
@@ -137,7 +137,7 @@ static void free_field_queue(PullupField *head)
av_free(f->combs);
av_free(f->vars);
next = f->next;
- memset(f, 0, sizeof(*f));
+ memset(f, 0, sizeof(*f)); // clear all pointers to avoid stale ones
av_free(f);
f = next;
} while (f != head);