On 17/12/2017 15:17, Rémi Denis-Courmont wrote:
user_context may need a user_free(),
Why oh why?
For consistency and to avoid some ugly corner cases.
There should be a point when the libavcodec user application can safely assume
that the callback will no longer be used - e.g. when the context is closed.
Using a free callback is only making things needlessly brittle and complicated
on both sides.
I totally agree, but I'm quite afraid this totally reasonable and valid
assumption might or might not be always valid, thus the may in the comments.
If there is agreement on the use case I'm more than happy to have less
fields to fill.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel