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-duck
/
src
/
codecs
/
truemotionrt.rs
diff --git
a/nihav-duck/src/codecs/truemotionrt.rs
b/nihav-duck/src/codecs/truemotionrt.rs
index a4ea0ac139dbd55796166c76f06687224b3ea423..df17047288aa63ed483376820d0252009756ad51 100644
(file)
--- a/
nihav-duck/src/codecs/truemotionrt.rs
+++ b/
nihav-duck/src/codecs/truemotionrt.rs
@@
-72,7
+72,7
@@
impl NADecoder for TMRTDecoder {
let (w, h) = buf.get_dimensions(plane);
let off = buf.get_offset(plane);
let stride = buf.get_stride(plane);
let (w, h) = buf.get_dimensions(plane);
let off = buf.get_offset(plane);
let stride = buf.get_stride(plane);
- let
mut data = buf.get_data_mut
();
+ let
data = buf.get_data_mut().unwrap
();
let dst = data.as_mut_slice();
self.decode_plane(&mut br, dst, off, stride, w, h, hscale, dbits, plane > 0)?;
}
let dst = data.as_mut_slice();
self.decode_plane(&mut br, dst, off, stride, w, h, hscale, dbits, plane > 0)?;
}