From fdf4b0701abb464e70e396351790e2203f4a9ae5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 24 Mar 2020 18:06:57 +0100 Subject: [PATCH] core/frame: add missing case for NABufferType::get_offset() --- nihav-core/src/frame.rs | 1 + 1 file changed, 1 insertion(+) 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, -- 2.39.5