Hi,

On Wed, May 28, 2008 at 12:15 PM, Thibault Collet <[EMAIL PROTECTED]> wrote:
> Does anybody knows why when I call "av_free_packet" with a packet (after
> processing it), it doesn't really free my memory space ?
> The pointer is set to NULL, but I can still access the values in the memory
> (if I saved the adress in a different pointer before freeing the memory),
> and the memory ressources allocated for my program does not decrease...
>
> I tried also through the direct way : free(packet->data), and it does not
> work either. I suspected some kind of protections from ffmpeg, but then why
> av_free_packet is facing the same issue ?

You should read up into OS memory allocation design if you're
interested. OSes do not just alloc/free serially, they stack it up,
it's more efficient that way. Ffmpeg doesn't do anything in addition
to the standard OS calls.

Ronald
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to