]> git.nihav.org Git - nihav.git/commitdiff
do not output frames in old video tests
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 8 Jun 2017 17:25:55 +0000 (19:25 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 8 Jun 2017 17:25:55 +0000 (19:25 +0200)
src/codecs/gremlinvideo.rs
src/codecs/indeo2.rs
src/codecs/indeo3.rs

index e6478aa165055d4ceacb1d6921a26c22c0c7f88e..636d45df86ee59252638f7605e40f1f29b3be541 100644 (file)
@@ -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; }
         }
index 00537f8684c5ea78ecf9ed1bfc7e586aaeeaea60..b6bb441b8e14005a3f3efd7c11dad35c8912b988 100644 (file)
@@ -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);
+//                }
             }
         }
     }
index 86cb47cd2bae2bbbb69f47cfa168c05817b37c6d..e5a6c0bf9a0cdaf01fdb7afa92446a5fa577fda6 100644 (file)
@@ -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; }
         }