[vlc-commits] [Git][videolan/vlc][master] 3 commits: fourcc: add QOA

Tristan Matthews (@tmatth) gitlab at videolan.org
Fri Dec 20 05:10:48 UTC 2024



Tristan Matthews pushed to branch master at VideoLAN / VLC


Commits:
5f0a6849 by Tristan Matthews at 2024-12-20T04:56:03+00:00
fourcc: add QOA

See:
https://qoaformat.org/

- - - - -
982db10a by Tristan Matthews at 2024-12-20T04:56:03+00:00
avcodec: fourcc: map QOA audio format

- - - - -
98b9c97a by Tristan Matthews at 2024-12-20T04:56:03+00:00
mime: add audio/qoa

- - - - -


4 changed files:

- include/vlc_fourcc.h
- modules/codec/avcodec/fourcc.c
- src/misc/fourcc_list.h
- src/misc/mime.c


Changes:

=====================================
include/vlc_fourcc.h
=====================================
@@ -578,6 +578,7 @@
 #define VLC_CODEC_ALAC                       VLC_FOURCC('a','l','a','c')
 #define VLC_CODEC_QDM2                       VLC_FOURCC('Q','D','M','2')
 #define VLC_CODEC_QDMC                       VLC_FOURCC('Q','D','M','C')
+#define VLC_CODEC_QOA                        VLC_FOURCC('q','o','a','f')
 #define VLC_CODEC_COOK                       VLC_FOURCC('c','o','o','k')
 #define VLC_CODEC_SIPR                       VLC_FOURCC('s','i','p','r')
 #define VLC_CODEC_TTA                        VLC_FOURCC('T','T','A','1')


=====================================
modules/codec/avcodec/fourcc.c
=====================================
@@ -448,6 +448,9 @@ static const struct vlc_avcodec_fourcc audio_codecs[] =
     { VLC_CODEC_GSM, AV_CODEC_ID_GSM },
     { VLC_CODEC_QDM2, AV_CODEC_ID_QDM2 },
     { VLC_CODEC_QDMC, AV_CODEC_ID_QDMC },
+#if LIBAVCODEC_VERSION_CHECK(60, 35, 100)
+    { VLC_CODEC_QOA, AV_CODEC_ID_QOA },
+#endif
     { VLC_CODEC_COOK, AV_CODEC_ID_COOK },
     { VLC_CODEC_TRUESPEECH, AV_CODEC_ID_TRUESPEECH },
     { VLC_CODEC_TTA, AV_CODEC_ID_TTA },


=====================================
src/misc/fourcc_list.h
=====================================
@@ -1535,6 +1535,10 @@ static const staticentry_t p_list_audio[] = {
     B(VLC_CODEC_QDMC, "QDMC Audio"),
         A("QDMC"),
 
+    /* QOA */
+    B(VLC_CODEC_QOA, "Quite OK Audio Format"),
+        A("qoaf"),
+
     /* COOK */
     B(VLC_CODEC_COOK, "Cook Audio"),
         A("cook"),


=====================================
src/misc/mime.c
=====================================
@@ -77,6 +77,7 @@ static const struct
     { ".ogv",   "video/ogg" },
     { ".ogx",   "application/ogg" },
     { ".opus",  "audio/ogg; codecs=opus" },
+    { ".qoa",   "audio/qoa" },
     { ".spx",   "audio/ogg" },
     { ".wav",   "audio/wav" },
     { ".wma",   "audio/x-ms-wma" },



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c80f7c9c5a3e6c418109e7ad810b3fa300141dee...98b9c97a690bde7968f4db0c135afff5a1fa5574

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c80f7c9c5a3e6c418109e7ad810b3fa300141dee...98b9c97a690bde7968f4db0c135afff5a1fa5574
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list