metadata: Merge memory_format correctly

This commit is contained in:
Sophie Herold 2024-08-05 23:43:52 +02:00
parent 8ddaf34e87
commit 7e227097ef
2 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,9 @@ impl Metadata {
if self.frame_info.is_none() {
self.frame_info = other.frame_info;
}
if self.memory_format.is_none() {
self.memory_format = other.memory_format;
}
}
pub fn mime_type(&self) -> Option<String> {