#[cfg(target_arch="x86_64")]
fn deint_chroma(frm: NASimpleVideoFrame<u8>, src: &[u8], sstride: usize) {
unsafe {
- let width = frm.width[1];
- let height = frm.height[1];
+ let width = (frm.width[1] + 7) & !7;
+ let height = (frm.height[1] + 7) & !7;
let dst = frm.data.as_mut_ptr();
let udst = dst.add(frm.offset[1]);
let vdst = dst.add(frm.offset[2]);
validate!(iimg.width == (((frm.width[0] + 15) & !15) as u16));
validate!(iimg.height == (((frm.height[0] + 15) & !15) as u16));
- copy_luma(&mut frm.data[frm.offset[0]..], frm.stride[0], &imgdata[iimg.offsets[0] as usize..], iimg.pitches[0] as usize, frm.width[0], frm.height[0]);
+ copy_luma(&mut frm.data[frm.offset[0]..], frm.stride[0], &imgdata[iimg.offsets[0] as usize..], iimg.pitches[0] as usize, (frm.width[0] + 15) & !15, (frm.height[0] + 15) & !15);
deint_chroma(frm, &imgdata[iimg.offsets[1] as usize..], iimg.pitches[1] as usize);
},