Skip to content

Commit

Permalink
Add support for AVC in HEIF mime types
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f97a0a)

# Conflicts:
#	src/bmffimage.cpp
  • Loading branch information
kmilos committed Dec 7, 2024
1 parent a9ded1e commit f95055e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bmffimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

enum {
TAG_ftyp = 0x66747970U, ///< "ftyp" File type box */
TAG_avci = 0x61766369U, ///< "avci" AVC */
TAG_avcs = 0x61766373U, ///< "avcs" AVC */
TAG_avif = 0x61766966U, ///< "avif" AVIF */
TAG_avio = 0x6176696fU, ///< "avio" AVIF */
TAG_avis = 0x61766973U, ///< "avis" AVIF */
Expand Down Expand Up @@ -114,6 +116,10 @@ static bool skipBox(uint32_t box) {

std::string BmffImage::mimeType() const {
switch (fileType_) {
case TAG_avci:
return "image/avci";
case TAG_avcs:
return "image/avcs";
case TAG_avif:
case TAG_avio:
case TAG_avis:
Expand Down

0 comments on commit f95055e

Please sign in to comment.