annotate the sources for test samples
[nihav.git] / nihav-realmedia / src / demuxers / realmedia.rs
index 248fa6c6f4c8677c594824fbe706cf0afc8a9518..7a59f567d1e7c83c67346a53d340869955f8307e 100644 (file)
@@ -44,7 +44,7 @@ impl RMVideoStream {
         }
     }
     fn flush(&mut self) {
-        self.frame.truncate(0);
+        self.frame.clear();
         self.frame_size = 0;
         self.frame_pos  = 0;
     }
@@ -1709,6 +1709,7 @@ mod test {
 
     #[test]
     fn test_rm_demux() {
+        // sample from a private collection
         let mut file =
             File::open("assets/RV/rv10_dnet_640x352_realvideo_encoder_4.0.rm").unwrap();
 //            File::open("assets/RV/rv20_cook_640x352_realproducer_plus_8.51.rm").unwrap();
@@ -1741,6 +1742,7 @@ mod test {
     }
     #[test]
     fn test_ra_demux() {
+        // sample: https://samples.mplayerhq.hu/real//RA/ra_with_comment_field/diemusik.ra
         let mut file =
 //            File::open("assets/RV/welcome288.ra").unwrap();
             File::open("assets/RV/diemusik.ra").unwrap();
@@ -1763,6 +1765,7 @@ mod test {
     }
     #[test]
     fn test_ivr_demux() {
+        // sample: https://samples.mplayerhq.hu/real/ivr/Opener_rm_hi.ivr
         let mut file =
             File::open("assets/RV/Opener_rm_hi.ivr").unwrap();
 //            File::open("assets/RV/SherwinWilliamsCommercial.ivr").unwrap();