aboutsummaryrefslogtreecommitdiffstats
path: root/tools/probetest.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-31 13:16:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-10-31 13:16:52 +0100
commit976175fbe559527389bff397b3174a27b20ab715 (patch)
tree63a60c8df64e829f86a08070ca75eb1d2933de71 /tools/probetest.c
parent755038d07d4ca8a3aa20a3cc6c4d86a8a0c1177d (diff)
downloadffmpeg-976175fbe559527389bff397b3174a27b20ab715.tar.gz
probetest: fix possible use of uninitialized data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/probetest.c')
-rw-r--r--tools/probetest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/probetest.c b/tools/probetest.c
index 29c27e4bf5..b13c6f96d7 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -84,6 +84,8 @@ int main(int argc, char **argv)
pd.buf = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE);
pd.filename = "";
+ memset(pd.buf, 0, size + AVPROBE_PADDING_SIZE);
+
fprintf(stderr, "testing size=%d\n", size);
for (retry = 0; retry < retry_count; retry += FFMAX(size, 32)) {