[FFmpeg-cvslog] avfilter/vf_pullup: add comment to explain memset(0)
Michael Niedermayer
git at videolan.org
Wed Mar 26 20:40:03 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar 26 20:05:57 2014 +0100| [3017239d3a6f1c4049394be49ae207cd4475ad53] | committer: Michael Niedermayer
avfilter/vf_pullup: add comment to explain memset(0)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3017239d3a6f1c4049394be49ae207cd4475ad53
---
libavfilter/vf_pullup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 73ffa68..9b9064c 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);
More information about the ffmpeg-cvslog
mailing list