[vlc-commits] Map ON2 AVC audio codec

Jean-Baptiste Kempf git at videolan.org
Sun Apr 27 15:34:46 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 27 15:26:00 2014 +0200| [f6e4647f697d9c545eb226accd69d4fd3825538b] | committer: Jean-Baptiste Kempf

Map ON2 AVC audio codec

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

 include/vlc_codecs.h           |    7 ++++++-
 include/vlc_fourcc.h           |    1 +
 modules/codec/avcodec/fourcc.c |    5 +++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 7fa4492..6410564 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -261,12 +261,15 @@ ATTR_PACKED
 #define WAVE_FORMAT_IMC                 0x0401
 #define WAVE_FORMAT_INDEO_AUDIO         0x0402 /* Indeo Audio Coder */
 
+#define WAVE_FORMAT_ON2_AVC             0x0500 /* VP7 */
+#define WAVE_FORMAT_ON2_AVC_2           0x0500 /* VP6 */
+
 #define WAVE_FORMAT_AAC_2               0x1601 /* Other AAC */
 #define WAVE_FORMAT_AAC_LATM            0x1602 /* AAC/LATM */
 
 #define WAVE_FORMAT_A52                 0x2000 /* a52 */
 #define WAVE_FORMAT_DTS                 0x2001 /* DTS */
-#define WAVE_FORMAT_AVCODEC_AAC          0x706D
+#define WAVE_FORMAT_AVCODEC_AAC         0x706D
 #define WAVE_FORMAT_DIVIO_AAC           0x4143 /* Divio's AAC */
 
 #define WAVE_FORMAT_GSM_AMR_FIXED       0x7A21 /* Fixed bitrate, no SID */
@@ -416,6 +419,8 @@ wave_format_tag_to_fourcc[] =
     { WAVE_FORMAT_IMC,        VLC_CODEC_IMC,                    "IMC" },
     { WAVE_FORMAT_INDEO_AUDIO, VLC_CODEC_INDEO_AUDIO, "Indeo Audio Coder" },
     { WAVE_FORMAT_VOXWARE_RT29,VLC_CODEC_METASOUND,             "VoxWare MetaSound" },
+    { WAVE_FORMAT_ON2_AVC     ,VLC_CODEC_ON2AVC,                "On2 Audio for Video Codec (VP7)" },
+    { WAVE_FORMAT_ON2_AVC_2   ,VLC_CODEC_ON2AVC,                "On2 Audio for Video Codec (VP6)" },
 
     { WAVE_FORMAT_UNKNOWN,    VLC_FOURCC( 'u', 'n', 'd', 'f' ), "Unknown" }
 };
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 5ce8538..5c38df7 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -403,6 +403,7 @@
 #define VLC_CODEC_ULEAD_DV_AUDIO_PAL         VLC_FOURCC('m','s',0x02,0x16)
 #define VLC_CODEC_INDEO_AUDIO                VLC_FOURCC('m','s',0x04,0x02)
 #define VLC_CODEC_METASOUND                  VLC_FOURCC('m','s',0x00,0x75)
+#define VLC_CODEC_ON2AVC                     VLC_FOURCC('m','s',0x05,0x00)
 
 /* Subtitle */
 #define VLC_CODEC_SPU       VLC_FOURCC('s','p','u',' ')
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index cabee2a..57f8b99 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -457,6 +457,11 @@ static const struct
 #if LIBAVCODEC_VERSION_CHECK( 55, 15, 0, 24, 100 )
     { VLC_CODEC_METASOUND, AV_CODEC_ID_METASOUND, AUDIO_ES },
 #endif
+    /* AV_CODEC_ID_PAF_AUDIO */
+#if LIBAVCODEC_VERSION_CHECK( 55, 49, 0, 59, 100 )
+    { VLC_CODEC_ON2AVC, AV_CODEC_ID_ON2AVC, AUDIO_ES },
+#endif
+
     /* ffmpeg only: AV_CODEC_ID_FFWAVESYNTH */
     /* ffmpeg only: AV_CODEC_ID_SONIC */
     /* ffmpeg only: AV_CODEC_ID_SONIC_LS */



More information about the vlc-commits mailing list