let sstride = (vinfo.width + 3) & !3;
- let buf = alloc_video_buffer(vinfo.clone(), 0)?;
+ let buf = alloc_video_buffer(*vinfo, 0)?;
let mut frm = buf.get_vbuf().unwrap();
let dstride = frm.get_stride(0);
15 | 16 => {
let sstride = (vinfo.width * 2 + 3) & !3;
- let buf = alloc_video_buffer(vinfo.clone(), 0)?;
+ let buf = alloc_video_buffer(*vinfo, 0)?;
let mut frm = buf.get_vbuf16().unwrap();
let dstride = frm.get_stride(0);
let offs = vec![0; ncomp];
let mut strides = vec![0; ncomp];
strides[0] = sstride;
- NABufferType::VideoPacked(NAVideoBuffer::from_raw_parts(vinfo.clone(), src.clone(), offs, strides).into_ref())
+ NABufferType::VideoPacked(NAVideoBuffer::from_raw_parts(*vinfo, src, offs, strides).into_ref())
},
_ => return Err(DecoderError::NotImplemented),
};