core/frame: add missing case for NABufferType::get_offset()
[nihav.git] / 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,