From: Kostya Shishkov Date: Thu, 8 Jun 2017 17:25:55 +0000 (+0200) Subject: do not output frames in old video tests X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=df14fb814c8339951aa457c833cfbb14e8ee1da4;p=nihav.git do not output frames in old video tests --- diff --git a/src/codecs/gremlinvideo.rs b/src/codecs/gremlinvideo.rs index e6478aa..636d45d 100644 --- a/src/codecs/gremlinvideo.rs +++ b/src/codecs/gremlinvideo.rs @@ -501,12 +501,13 @@ panic!("decoder {} not found", info.get_name()); let pkt = pktres.unwrap(); let streamno = pkt.get_stream().get_id() as usize; if let Some(ref mut dec) = decs[streamno] { - let frm = dec.decode(&pkt).unwrap(); - if pkt.get_stream().get_info().is_video() { - if frm.borrow().get_frame_type() != FrameType::Skip { - write_palppm("gdv", streamno, pkt.get_pts().unwrap(), frm); - } - } +// let frm = +dec.decode(&pkt).unwrap(); +// if pkt.get_stream().get_info().is_video() { +// if frm.borrow().get_frame_type() != FrameType::Skip { +// write_palppm("gdv", streamno, pkt.get_pts().unwrap(), frm); +// } +// } } if pkt.get_pts().unwrap() > 8 { break; } } diff --git a/src/codecs/indeo2.rs b/src/codecs/indeo2.rs index 00537f8..b6bb441 100644 --- a/src/codecs/indeo2.rs +++ b/src/codecs/indeo2.rs @@ -404,12 +404,13 @@ mod test { if pkt.get_pts().unwrap() > 10 { break; } let streamno = pkt.get_stream().get_id() as usize; if let Some(ref mut dec) = decs[streamno] { - let frm = dec.decode(&pkt).unwrap(); - if pkt.get_stream().get_info().is_video() { - write_pgmyuv("iv2", streamno, pkt.get_pts().unwrap(), frm); - } else { - write_sound("iv2", streamno, frm, pkt.get_pts().unwrap() == 0); - } +// let frm = +dec.decode(&pkt).unwrap(); +// if pkt.get_stream().get_info().is_video() { +// write_pgmyuv("iv2", streamno, pkt.get_pts().unwrap(), frm); +// } else { +// write_sound("iv2", streamno, frm, pkt.get_pts().unwrap() == 0); +// } } } } diff --git a/src/codecs/indeo3.rs b/src/codecs/indeo3.rs index 86cb47c..e5a6c0b 100644 --- a/src/codecs/indeo3.rs +++ b/src/codecs/indeo3.rs @@ -816,12 +816,13 @@ panic!("decoder {} not found", info.get_name()); let pkt = pktres.unwrap(); let streamno = pkt.get_stream().get_id() as usize; if let Some(ref mut dec) = decs[streamno] { - let frm = dec.decode(&pkt).unwrap(); - if pkt.get_stream().get_info().is_video() { - write_pgmyuv("iv3", streamno, pkt.get_pts().unwrap(), frm); - } else { - write_sound("iv3", streamno, frm, pkt.get_pts().unwrap() == 0); - } +// let frm = +dec.decode(&pkt).unwrap(); +// if pkt.get_stream().get_info().is_video() { +// write_pgmyuv("iv3", streamno, pkt.get_pts().unwrap(), frm); +// } else { +// write_sound("iv3", streamno, frm, pkt.get_pts().unwrap() == 0); +// } } if pkt.get_pts().unwrap() > 10 { break; } }