diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-21 22:45:25 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-21 22:53:20 +0300 |
commit | 6135c3b61e084be93c0876cecd06f4e764f961c0 (patch) | |
tree | 944a2201e4d7403a6f1d9e0f2fcfa9c6dbfe1e9f /avprobe.c | |
parent | f637046d3134a331e4b5a7243ac3dfb92735b8a5 (diff) |
Revert "avprobe: Zero the allocated avio buffer memory"
This reverts commit 0e0538aefc75958ded49f5d075c99a81cf6b2bbb.
The valgrind warning was a false positive due to OSX implementation of
printf (invoking a strnlen), while this code is actually fine, since the
format specifier %.*s guarantes that no more than buf_size bytes from
buf will be read.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1039,7 +1039,7 @@ static int probe_buf_write(void *opaque, uint8_t *buf, int buf_size) int main(int argc, char **argv) { int ret; - uint8_t *buffer = av_mallocz(AVP_BUFFSIZE); + uint8_t *buffer = av_malloc(AVP_BUFFSIZE); if (!buffer) exit(1); |