Skip to content

Commit 4263471

Browse files
committed
Bump ravif/dav1d versions
1 parent a7781b3 commit 4263471

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ num-traits = { version = "0.2.0" }
4242

4343
# Optional dependencies
4444
color_quant = { version = "1.1", optional = true }
45-
dav1d = { version = "0.10.3", optional = true }
45+
dav1d = { version = "0.11.0", optional = true }
4646
exr = { version = "1.74.0", default-features = false, optional = true }
4747
gif = { version = "0.14.0", optional = true }
4848
image-webp = { version = "0.2.0", optional = true }
4949
mp4parse = { version = "0.17.0", optional = true }
5050
png = { version = "0.18.0", optional = true }
5151
qoi = { version = "0.4", optional = true }
52-
ravif = { version = "0.12", default-features = false, optional = true }
52+
ravif = { version = "0.13", default-features = false, optional = true }
5353
rayon = { version = "1.7.0", optional = true }
5454
rgb = { version = "0.8.48", default-features = false, optional = true }
5555
tiff = { version = "0.11.2", optional = true }

src/codecs/avif/encoder.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use rgb::AsPixels;
2626
/// Writes one image into the chosen output.
2727
pub struct AvifEncoder<W> {
2828
inner: W,
29-
encoder: Encoder,
29+
encoder: Encoder<'static>,
3030
}
3131

3232
/// An enumeration over supported AVIF color spaces
@@ -130,6 +130,12 @@ impl<W: Write> ImageEncoder for AvifEncoder<W> {
130130
self.inner.write_all(&data.avif_file)?;
131131
Ok(())
132132
}
133+
134+
fn set_exif_metadata(&mut self, exif: Vec<u8>) -> Result<(), UnsupportedError> {
135+
let encoder = core::mem::replace(&mut self.encoder, Encoder::new());
136+
self.encoder = encoder.with_exif(exif);
137+
Ok(())
138+
}
133139
}
134140

135141
impl<W: Write> AvifEncoder<W> {

0 commit comments

Comments
 (0)