The previous documentation was very vague and almost misleading. --- libavcodec/internal.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index a681329..c3dfaa1 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -34,11 +34,16 @@ #include "config.h" /** - * Codec is thread safe. + * The codec doesn't touch global variables in the init function, allowing + * running the init function without locking any global mutexes. */ #define FF_CODEC_CAP_INIT_THREADSAFE (1 << 0) /** - * Codec cleans up memory on init failure. + * The codec allows (and requires) calling the close function for deallocation + * even if the init function returned a failure. (Previously, without this + * capability flag, a codec does such cleanup internally when returning + * failures from the init function and does not expect the close function + * to be called at all.) */ #define FF_CODEC_CAP_INIT_CLEANUP (1 << 1) -- 1.9.5 (Apple Git-50.3) _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
