Skip to content

Commit 1f97a0a

Browse files
committed
Add support for AVC in HEIF mime types
1 parent 8c8f496 commit 1f97a0a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bmffimage.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
enum {
3131
TAG_ftyp = 0x66747970U, //!< "ftyp" File type box */
32+
TAG_avci = 0x61766369U, //!< "avci" AVC */
33+
TAG_avcs = 0x61766373U, //!< "avcs" AVC */
3234
TAG_avif = 0x61766966U, //!< "avif" AVIF */
3335
TAG_avio = 0x6176696fU, //!< "avio" AVIF */
3436
TAG_avis = 0x61766973U, //!< "avis" AVIF */
@@ -116,6 +118,10 @@ static bool skipBox(uint32_t box) {
116118

117119
std::string BmffImage::mimeType() const {
118120
switch (fileType_) {
121+
case TAG_avci:
122+
return "image/avci";
123+
case TAG_avcs:
124+
return "image/avcs";
119125
case TAG_avif:
120126
case TAG_avio:
121127
case TAG_avis:

0 commit comments

Comments
 (0)