Add alw as a valid file extension for alaw and ulw as a valid file extension for...
authorJoshua Colp <jcolp@digium.com>
Mon, 8 Dec 2008 21:41:50 +0000 (21:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 8 Dec 2008 21:41:50 +0000 (21:41 +0000)
(closes issue #14001)
Reported by: henrikw
Patches:
      alw.diff uploaded by henrikw (license 627)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@161869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_pcm.c

index 60f3289..1a5637f 100644 (file)
@@ -415,7 +415,7 @@ static off_t au_tell(struct ast_filestream *fs)
 
 static const struct ast_format alaw_f = {
        .name = "alaw",
-       .exts = "alaw|al",
+       .exts = "alaw|al|alw",
        .format = AST_FORMAT_ALAW,
        .write = pcm_write,
        .seek = pcm_seek,
@@ -432,7 +432,7 @@ static const struct ast_format alaw_f = {
 
 static const struct ast_format pcm_f = {
        .name = "pcm",
-       .exts = "pcm|ulaw|ul|mu",
+       .exts = "pcm|ulaw|ul|mu|ulw",
        .format = AST_FORMAT_ULAW,
        .write = pcm_write,
        .seek = pcm_seek,