Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-26 23:05:57 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-26 23:05:57 +0400
commit3017239d3a6f1c4049394be49ae207cd4475ad53 (patch)
treea99e3006f5f95b039a5b03742f9bf2ff7221972c /libavfilter/vf_pullup.c
parenta44409e692e8f369368215fb16b34749cff0d35c (diff)
avfilter/vf_pullup: add comment to explain memset(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_pullup.c')
-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);