diff options
Diffstat (limited to 'transcoder/src/fragment.rs')
| -rw-r--r-- | transcoder/src/fragment.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/transcoder/src/fragment.rs b/transcoder/src/fragment.rs index c34e8ee..2ff36a7 100644 --- a/transcoder/src/fragment.rs +++ b/transcoder/src/fragment.rs @@ -55,6 +55,7 @@ pub fn transcode_init( }) } +#[allow(clippy::too_many_arguments)] pub fn transcode( cache: &Cache, config: &Config, @@ -66,7 +67,7 @@ pub fn transcode( end_pts: u64, segment: impl FnOnce() -> Result<Segment>, ) -> Result<Segment> { - let command = transcode_command(kind, &input_format, output_format, false, config).unwrap(); + let command = transcode_command(kind, input_format, output_format, false, config).unwrap(); let output = cache.cache( &format!( @@ -115,10 +116,7 @@ pub fn transcode( } //? Remove extra kf hack - if clusters - .last() - .map_or(false, |c| c.simple_blocks.len() == 1) - { + if clusters.last().is_some_and(|c| c.simple_blocks.len() == 1) { clusters.pop(); } |