feat: add DRM and audio channel number filtering to StreamFilter

This commit is contained in:
ThetaDev 2025-01-16 00:47:49 +01:00
parent 7cd9246260
commit d5abee2753
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
8 changed files with 2443 additions and 87 deletions

View file

@ -796,6 +796,10 @@ fn get_audio_codec(codecs: Vec<&str>) -> AudioCodec {
return AudioCodec::Mp4a;
} else if codec.starts_with("opus") {
return AudioCodec::Opus;
} else if codec.starts_with("ac-3") {
return AudioCodec::Ac3;
} else if codec.starts_with("ec-3") {
return AudioCodec::Ec3;
}
}
AudioCodec::Unknown