projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to refcounted buffers
[nihav.git]
/
nihav-indeo
/
src
/
codecs
/
indeo2.rs
diff --git
a/nihav-indeo/src/codecs/indeo2.rs
b/nihav-indeo/src/codecs/indeo2.rs
index 49b8e9bbc364d7cdb737a98b43b297f257981dd6..c3a8a4772ebd9b182339f557ec7673f3c8ee740b 100644
(file)
--- a/
nihav-indeo/src/codecs/indeo2.rs
+++ b/
nihav-indeo/src/codecs/indeo2.rs
@@
-207,7
+207,7
@@
impl Indeo2Decoder {
let stride = buf.get_stride(planeno);
let cb = &self.cb;
let stride = buf.get_stride(planeno);
let cb = &self.cb;
- let
mut data = buf.get_data_mut
();
+ let
data = buf.get_data_mut().unwrap
();
let framebuf: &mut [u8] = data.as_mut_slice();
let table = &INDEO2_DELTA_TABLE[tableno];
let framebuf: &mut [u8] = data.as_mut_slice();
let table = &INDEO2_DELTA_TABLE[tableno];
@@
-270,7
+270,7
@@
impl Indeo2Decoder {
let stride = buf.get_stride(planeno);
let cb = &self.cb;
let stride = buf.get_stride(planeno);
let cb = &self.cb;
- let
mut data = buf.get_data_mut
();
+ let
data = buf.get_data_mut().unwrap
();
let framebuf: &mut [u8] = data.as_mut_slice();
let table = &INDEO2_DELTA_TABLE[tableno];
let framebuf: &mut [u8] = data.as_mut_slice();
let table = &INDEO2_DELTA_TABLE[tableno];