Updated to start frames with the FRAME contents

This commit is contained in:
Mpho raf
2024-12-04 11:20:43 +02:00
parent 784f7730a2
commit 4fa36f72cd

View File

@@ -40,10 +40,10 @@ fn main() -> Result<(), std::io::Error> {
let mut my_file = BufWriter::new(File::create(output_file)?);
writeln!(&mut my_file, "YUV4MPEG2 W{} H{} F{}:1 Ip A1:1 C444", WIDTH, HEIGHT, FPS)?;
writeln!(&mut my_file, "FRAME");
for _ in 0..FPS {
writeln!(&mut my_file, "FRAME")?;
for _ in 0..WIDTH*HEIGHT {
let mut contents = [0u8; 3];
let contents = [0u8; 3];
my_file.write(&contents)?;
}
}