Skip to content

Commit 79b6ad0

Browse files
committed
fix typo
Signed-off-by: Jess Frazelle <github@jessfraz.com>
1 parent 0291ff2 commit 79b6ad0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "twenty-twenty"
33
description = "Visual regression testing of H264 frames and images."
4-
version = "0.3.0"
4+
version = "0.4.0"
55
edition = "2021"
66
license = "MIT"
77

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn assert_image<P: AsRef<std::path::Path>>(path: P, actual: &image::DynamicI
6666
/// the test will fail.
6767
/// The score is a float between 0 and 1.
6868
/// If the images are the exact same, the score will be 1.
69-
/// This compartes the H.264 frame to a PNG. This is because then the diff will be easily visible
69+
/// This compares the H.264 frame to a PNG. This is because then the diff will be easily visible
7070
/// in a UI like GitHub's.
7171
#[track_caller]
7272
pub fn assert_h264_frame<P: AsRef<std::path::Path>>(path: P, actual: &[u8], threshold: f64) {
@@ -127,8 +127,6 @@ pub(crate) fn h264_frame_to_image(data: &[u8]) -> Result<image::DynamicImage> {
127127
// Convert the decoded frame to an RGB format
128128
video_frame.set_format(ffmpeg::format::Pixel::RGB24);
129129

130-
// Save the image to disk.
131-
132130
// Create an image from the RGB frame
133131
let Some(raw) = image::RgbImage::from_raw(video_frame.width(), video_frame.height(), video_frame.data(0).to_vec()) else {
134132
anyhow::bail!("could not parse image from raw");

0 commit comments

Comments
 (0)