Commit 0e0538ae authored by Vittorio Giovara's avatar Vittorio Giovara

avprobe: Zero the allocated avio buffer memory

Fixes valgrind warning "Conditional jump or move depends on
uninitialised value(s)." from avio_flush().
parent 5d0f85f1
...@@ -1039,7 +1039,7 @@ static int probe_buf_write(void *opaque, uint8_t *buf, int buf_size) ...@@ -1039,7 +1039,7 @@ static int probe_buf_write(void *opaque, uint8_t *buf, int buf_size)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int ret; int ret;
uint8_t *buffer = av_malloc(AVP_BUFFSIZE); uint8_t *buffer = av_mallocz(AVP_BUFFSIZE);
if (!buffer) if (!buffer)
exit(1); exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment