[vlc-commits] vlc_codecs: add missing Opus and alac waveformats

Francois Cartegnie git at videolan.org
Thu Jun 3 12:35:40 UTC 2021


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jun  1 10:40:01 2021 +0200| [95cce99f562bf220ca70660ee0640a478dac7f02] | committer: Hugo Beauzée-Luyssen

vlc_codecs: add missing Opus and alac waveformats

>= Win10

refs #25794

(cherry picked from commit 4f7eeafa6561170d838ad23be350aa59e061e592)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=95cce99f562bf220ca70660ee0640a478dac7f02
---

 include/vlc_codecs.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 611524b81a..acf98f9043 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -238,10 +238,12 @@ ATTR_PACKED
 #define WAVE_FORMAT_AAC_ADTS            0x1600 /* AAC/ADTS */
 #define WAVE_FORMAT_AAC_2               0x1601 /* Other AAC */
 #define WAVE_FORMAT_AAC_LATM            0x1602 /* AAC/LATM */
-#define WAVE_FORMAT_HEAAC               0x1610
+#define WAVE_FORMAT_HEAAC               0x1610 /* Raw AAC or ADTS */
 
 #define WAVE_FORMAT_A52                 0x2000 /* a52 */
 #define WAVE_FORMAT_DTS                 0x2001 /* DTS */
+#define WAVE_FORMAT_ALAC                0x6c61
+#define WAVE_FORMAT_OPUS                0x704f
 #define WAVE_FORMAT_AVCODEC_AAC         0x706D
 #define WAVE_FORMAT_DIVIO_AAC           0x4143 /* Divio's AAC */
 
@@ -362,6 +364,8 @@ wave_format_tag_to_fourcc[] =
     { WAVE_FORMAT_AAC_3,            VLC_CODEC_MP4A,                   "MPEG-4 Audio" },
     { WAVE_FORMAT_AAC_LATM,         VLC_CODEC_MP4A,                   "MPEG-4 LATM Audio" },
     { WAVE_FORMAT_HEAAC,            VLC_CODEC_MP4A,                   "MPEG-4 Audio" },
+    { WAVE_FORMAT_ALAC,             VLC_CODEC_ALAC,                   "Apple Lossless" },
+    { WAVE_FORMAT_OPUS,             VLC_CODEC_OPUS,                   "Opus Audio" },
     { WAVE_FORMAT_AVCODEC_AAC,      VLC_CODEC_MP4A,                   "MPEG-4 Audio" },
     { WAVE_FORMAT_AAC_MS,           VLC_CODEC_MP4A,                   "MPEG-4 Audio" },
     { WAVE_FORMAT_VORBIS,           VLC_CODEC_VORBIS,                 "Vorbis Audio" },



More information about the vlc-commits mailing list