automatically initialize/deinitialize library in en265_new_encoder/en265_free_decoder