diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-05-16 09:17:48 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-05-16 09:17:48 +0200 |
commit | dc45d8ce2269e638c10a18f99aed3294fd5de827 (patch) | |
tree | 8f7e4250c9c89ed187d2f9664768e802a2c741b6 /nihav-core/src | |
parent | fdb4b2fbe87ca6e15f6d5e8ad040b7c9ee883053 (diff) | |
download | nihav-dc45d8ce2269e638c10a18f99aed3294fd5de827.tar.gz |
core/frame: change simple frame data to slice
Diffstat (limited to 'nihav-core/src')
-rw-r--r-- | nihav-core/src/frame.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 14e5b63..6dfc5eb 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -268,7 +268,7 @@ pub struct NASimpleVideoFrame<'a, T: Copy> { pub stride: [usize; NA_SIMPLE_VFRAME_COMPONENTS], pub offset: [usize; NA_SIMPLE_VFRAME_COMPONENTS], pub components: usize, - pub data: &'a mut Vec<T>, + pub data: &'a mut [T], } impl<'a, T:Copy> NASimpleVideoFrame<'a, T> { @@ -297,7 +297,7 @@ impl<'a, T:Copy> NASimpleVideoFrame<'a, T> { stride: s, offset: o, components, - data: vbuf.data.as_mut().unwrap(), + data: vbuf.data.as_mut_slice(), }) } } |