zhangyong hai 7 meses
pai
achega
4d198b8f87
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      data_channel/piaoquan.py

+ 2 - 2
data_channel/piaoquan.py

@@ -291,8 +291,8 @@ class PQ:
     def decrypt_video(cls, data: bytes, decode_key: int, enc_length: int = 131072) -> bytes:
     def decrypt_video(cls, data: bytes, decode_key: int, enc_length: int = 131072) -> bytes:
         try:
         try:
             ffi = cffi.FFI()
             ffi = cffi.FFI()
-            lib = ffi.dlopen(r'/Users/tzld/Desktop/video_rewriting/libsph_decrypt.dylib')
-            # lib = ffi.dlopen(r'/root/video_rewriting/libsph_decrypt.so')
+            # lib = ffi.dlopen(r'/Users/tzld/Desktop/video_rewriting/libsph_decrypt.dylib')
+            lib = ffi.dlopen(r'/root/video_rewriting/libsph_decrypt.so')
             ffi.cdef('void decrypt(unsigned char *data, const size_t data_length, const uint32_t key);')
             ffi.cdef('void decrypt(unsigned char *data, const size_t data_length, const uint32_t key);')
 
 
             c_data = ffi.new('unsigned char[]', list(data))
             c_data = ffi.new('unsigned char[]', list(data))