fix: a/v streams incorrectly recognized as video-only

This commit is contained in:
ThetaDev 2025-01-22 00:54:37 +01:00
parent 9c73ed4b30
commit 2b891ca078
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
5 changed files with 40 additions and 27 deletions

View file

@ -150,9 +150,7 @@ pub(crate) struct Format {
impl Format {
pub fn is_audio(&self) -> bool {
self.content_length.is_some()
&& self.audio_quality.is_some()
&& self.audio_sample_rate.is_some()
self.audio_quality.is_some() && self.audio_sample_rate.is_some()
}
pub fn is_video(&self) -> bool {