c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit 50729b71dbe9eed0e838cc187eb902da081376e6
parent f5492d4eaaca64d96e6ef4df950988a5bdcf18c9
Author: Dave Kozma <dkozma@adobe.com>
Date:   Wed,  4 Oct 2023 09:01:16 -0400

Add all of the MIME types that are associated with WAV files (#316)


Diffstat:
MREADME.md | 2+-
Msdk/src/asset_handlers/riff_io.rs | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -53,7 +53,7 @@ The SDK has been tested on the following operating systems: | `png` | `image/png` | | `svg` | `image/svg+xml` | | `tif`,`tiff` | `image/tiff` | - | `wav` | `audio/x-wav` | + | `wav` | `audio/wav` | | `webp` | `image/webp` | ## Usage diff --git a/sdk/src/asset_handlers/riff_io.rs b/sdk/src/asset_handlers/riff_io.rs @@ -31,12 +31,15 @@ use crate::{ utils::xmp_inmemory_utils::{add_provenance, MIN_XMP}, }; -static SUPPORTED_TYPES: [&str; 9] = [ +static SUPPORTED_TYPES: [&str; 12] = [ "avi", "wav", "webp", "image/webp", + "audio/wav", + "audio/wave", "audio/x-wav", + "audio/vnd.wave", "application/x-troff-msvideo", "video/avi", "video/msvideo",