diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-20 16:44:10 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-07-20 18:13:33 +0300 |
commit | 0e0538aefc75958ded49f5d075c99a81cf6b2bbb (patch) | |
tree | 28fecc5fe7256c6d52687c6d85ebad53c105d197 | |
parent | 5d0f85f1b2469b60d0838330aabe5353fdd9ef1d (diff) |
avprobe: Zero the allocated avio buffer memory
Fixes valgrind warning "Conditional jump or move depends on
uninitialised value(s)." from avio_flush().
-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_malloc(AVP_BUFFSIZE); + uint8_t *buffer = av_mallocz(AVP_BUFFSIZE); if (!buffer) exit(1); |