]> git.nihav.org Git - nihav.git/commitdiff
core/frame: add missing case for NABufferType::get_offset()
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 17:06:57 +0000 (18:06 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 17:06:57 +0000 (18:06 +0100)
nihav-core/src/frame.rs

index 145bd2a23dc909c04f4187ba7a0fd37914e9ffc6..67f17272c941e029cdf907c10231ccc08e8b44fe 100644 (file)
@@ -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,