[vlc-commits] Map another twocc for g726 in wav

Ben Littler git at videolan.org
Fri Sep 6 18:19:19 CEST 2013


vlc | branch: master | Ben Littler <tempn at twmi.rr.com> | Fri Sep  6 18:18:27 2013 +0200| [beefa854cf2a6f3525f6d5288d42e4c09cdefdb7] | committer: Jean-Baptiste Kempf

Map another twocc for g726 in wav

This patch should fix this sample:
http://samples.ffmpeg.org/A-codecs/g726-test1.wav

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 include/vlc_codecs.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 91c2f03..effa3f7 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -235,6 +235,7 @@ ATTR_PACKED
 #define WAVE_FORMAT_MPEGLAYER3          0x0055 /* ISO/MPEG Layer3 Format Tag */
 #define WAVE_FORMAT_AMR_NB              0x0057 /* AMR NB */
 #define WAVE_FORMAT_AMR_WB              0x0058 /* AMR Wideband */
+#define WAVE_FORMAT_G726_ADPCM          0x0064 /* G.726 ADPCM  */
 #define WAVE_FORMAT_VOXWARE_RT29        0x0075 /* VoxWare MetaSound */
 #define WAVE_FORMAT_DOLBY_AC3_SPDIF     0x0092 /* Sonic Foundry */
 
@@ -358,6 +359,7 @@ wave_format_tag_to_fourcc[] =
     { WAVE_FORMAT_TRUESPEECH, VLC_CODEC_TRUESPEECH,             "Truespeech" },
     { WAVE_FORMAT_GSM610,     VLC_CODEC_GSM_MS,                 "Microsoft WAV GSM" },
     { WAVE_FORMAT_G726,       VLC_CODEC_ADPCM_G726,             "G.726 ADPCM" },
+    { WAVE_FORMAT_G726_ADPCM, VLC_CODEC_ADPCM_G726,             "G.726 ADPCM" },
     { WAVE_FORMAT_G723_1,     VLC_CODEC_G723_1,                 "G.723.1" },
     { WAVE_FORMAT_MSG723,     VLC_CODEC_G723_1,                 "Microsoft G.723 [G723.1]" },
     { WAVE_FORMAT_MPEGLAYER3, VLC_CODEC_MPGA,                   "Mpeg Audio" },



More information about the vlc-commits mailing list