From b679c7fa77c1e93114d065bcbd8f44f03de0d203 Mon Sep 17 00:00:00 2001 From: mote Date: Wed, 1 Nov 2017 00:57:46 +0100 Subject: [PATCH] Add WebP support --- src/riff.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/riff.c b/src/riff.c index 22054af..64c4ca0 100644 --- a/src/riff.c +++ b/src/riff.c @@ -208,6 +208,13 @@ static const struct riff_chunk_spec riff_dmpt_body[] = BODY( LIST( 'p','t','t','n', 0, 1) ); +/* WebP */ +static const struct riff_chunk_spec riff_webp_body[] = BODY( + CHUNK('V','P','8',' ', 0), + CHUNK('V','P','8','L', 0), + CHUNK('V','P','8','X', 0) +); + static const struct riff_file_spec riff_file_specs[] = { { RIFF('W','A','V','E', riff_wav_body ), "wav" }, { RIFF('A','V','I',' ', riff_avi_body ), "avi" }, @@ -230,6 +237,7 @@ static const struct riff_file_spec riff_file_specs[] = { { RIFF('D','M','T','K', riff_dmtk_body), "riff" }, { RIFF('D','M','B','T', riff_dmbt_body), "riff" }, { RIFF('D','M','P','T', riff_dmpt_body), "riff" }, + { RIFF('W','E','B','P', riff_webp_body), "webp" }, { END, 0 } };