HOTFIX: default bitrate, #415

This commit is contained in:
simon 2023-05-14 08:01:15 +07:00
parent c65fbb0b60
commit f848e73251
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ class MediaStreamExtractor:
{
"type": "audio",
"index": stream["index"],
"codec": stream["codec_name"],
"bitrate": int(stream["bit_rate"]),
"codec": stream.get("codec_name", "undefined"),
"bitrate": int(stream.get("bit_rate", 0)),
}
)