[Ffmpeg-devel] Possible memory leak when writing ASF files (asf, wmv, etc...)

Stas Oskin stas.oskin
Sun Mar 11 19:51:56 CET 2007


When creating a new ASF/WMV file, valgrind reports the following
warning on a first write:

==18643== Syscall param write(buf) points to uninitialised byte(s)
==18643==    at 0x30AE1B933F: (within /lib64/tls/libc-2.3.4.so)
==18643==    by 0x4A346FF: file_write (file.c:62)
==18643==    by 0x4A32C0E: url_write (avio.c:117)
==18643==    by 0x4A33D3C: url_write_packet (aviobuf.c:478)
==18643==    by 0x4A32F66: flush_buffer (aviobuf.c:68)
==18643==    by 0x4A330FA: put_flush_packet (aviobuf.c:110)
==18643==    by 0x4A470A0: flush_packet (asf-enc.c:602)
==18643==    by 0x4A473ED: put_frame (asf-enc.c:712)
==18643==    by 0x4A47582: asf_write_packet (asf-enc.c:740)
==18643==    by 0x4A2F6CD: av_write_frame (utils.c:2197)

All the subsequent writes are ok. I traced the program, and the buv
value is always equal to "\202".
Any idea what is happening?

More information about the ffmpeg-devel mailing list