switch to refcounted buffers
[nihav.git] / nihav-duck / src / codecs / truemotionrt.rs
index a4ea0ac139dbd55796166c76f06687224b3ea423..df17047288aa63ed483376820d0252009756ad51 100644 (file)
@@ -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 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)?;
         }