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