fix: ValueError: mode must be 'r', 'w', or None, got: wb (#1991)

This commit is contained in:
Blaise 2024-04-21 14:15:58 +02:00 committed by GitHub
parent 55f9b3262c
commit dc5c6809b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@ import av
def wav2(i, o, format):
inp = av.open(i, "rb")
inp = av.open(i, "r")
if format == "m4a":
format = "mp4"
out = av.open(o, "wb", format=format)
out = av.open(o, "w", format=format)
if format == "ogg":
format = "libvorbis"
if format == "mp4":