donmai-me / WannaCRI

Criware media formats library
MIT License
128 stars 10 forks source link

Fix small bug preventing non-encrypted USM creation #2

Closed emoose closed 3 years ago

emoose commented 3 years ago

Just a minor issue that would cause "ValueError: Key is required for encryption/decryption." when creating USMs, with this change it seems to create them fine without needing a key.

(great project btw, looking forward to H264 creation support! In case you need a sample H264 USM to look at, https://zenhax.com/viewtopic.php?t=14969 has a link for one that uses the key 0x0000450D608C479F)

donmai-me commented 3 years ago

Thanks for the fix, totally missed that part. I'll get working on h264 support soon.