X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;fp=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;h=089cd3598cd9275601e11f32992cb905e9ac603e;hb=846959ef46de05231d21759b907a734d750d50c8;hp=58131c83f2b3414bf76a968d9847e50a4fc98ebb;hpb=ff8cb3aa6ed9cafb4378401406d0081fbba079bf;p=nihav.git diff --git a/nihav-indeo/src/codecs/indeo2.rs b/nihav-indeo/src/codecs/indeo2.rs index 58131c8..089cd35 100644 --- a/nihav-indeo/src/codecs/indeo2.rs +++ b/nihav-indeo/src/codecs/indeo2.rs @@ -335,7 +335,8 @@ impl NADecoder for Indeo2Decoder { let mut buf = bufinfo.get_vbuf().unwrap(); for plane in 0..3 { let tabidx = (if plane == 0 { luma_tab } else { chroma_tab }) as usize; - self.decode_plane_intra(&mut br, &mut buf, plane, tabidx)?; + let planeno = if plane == 0 { 0 } else { plane ^ 3 }; + self.decode_plane_intra(&mut br, &mut buf, planeno, tabidx)?; } self.frmmgr.add_frame(buf); let mut frm = NAFrame::new_from_pkt(pkt, self.info.clone(), bufinfo); @@ -349,7 +350,8 @@ impl NADecoder for Indeo2Decoder { for plane in 0..3 { let tabidx = (if plane == 0 { luma_tab } else { chroma_tab }) as usize; - self.decode_plane_inter(&mut br, &mut buf, plane, tabidx)?; + let planeno = if plane == 0 { 0 } else { plane ^ 3 }; + self.decode_plane_inter(&mut br, &mut buf, planeno, tabidx)?; } let mut frm = NAFrame::new_from_pkt(pkt, self.info.clone(), NABufferType::Video(buf)); frm.set_keyframe(false);