let vci = NACodecTypeInfo::Video(vhdr);
let edata = dmx.read_extradata(size - 40)?;
if colors > 0 {
if let Some(ref buf) = edata {
let mut pal = [0u8; 1024];
for (dpal, spal) in pal.chunks_mut(4).take(colors as usize).zip(buf.chunks(4)) {
let vci = NACodecTypeInfo::Video(vhdr);
let edata = dmx.read_extradata(size - 40)?;
if colors > 0 {
if let Some(ref buf) = edata {
let mut pal = [0u8; 1024];
for (dpal, spal) in pal.chunks_mut(4).take(colors as usize).zip(buf.chunks(4)) {