From: Kostya Shishkov Date: Tue, 24 Mar 2020 17:06:57 +0000 (+0100) Subject: core/frame: add missing case for NABufferType::get_offset() X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=fdf4b0701abb464e70e396351790e2203f4a9ae5;p=nihav.git core/frame: add missing case for NABufferType::get_offset() --- diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 145bd2a..67f1727 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -277,6 +277,7 @@ impl NABufferType { NABufferType::VideoPacked(ref vb) => vb.get_offset(idx), NABufferType::AudioU8(ref ab) => ab.get_offset(idx), NABufferType::AudioI16(ref ab) => ab.get_offset(idx), + NABufferType::AudioI32(ref ab) => ab.get_offset(idx), NABufferType::AudioF32(ref ab) => ab.get_offset(idx), NABufferType::AudioPacked(ref ab) => ab.get_offset(idx), _ => 0,