aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/frame.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-03-24 18:06:57 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-03-24 18:06:57 +0100
commitfdf4b0701abb464e70e396351790e2203f4a9ae5 (patch)
treec3e960cee89691095f471e9d409c413507968341 /nihav-core/src/frame.rs
parent708606385135bb08ddde1997f7f7090622bbc717 (diff)
downloadnihav-fdf4b0701abb464e70e396351790e2203f4a9ae5.tar.gz
core/frame: add missing case for NABufferType::get_offset()
Diffstat (limited to 'nihav-core/src/frame.rs')
-rw-r--r--nihav-core/src/frame.rs1
1 files changed, 1 insertions, 0 deletions
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,