[Asterisk-code-review] format_wav: Support of MIME-type for wav16 (asterisk[master])

Boris P. Korzun asteriskteam at digium.com
Tue Feb 2 02:35:42 CST 2021


Boris P. Korzun has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/15391 )


Change subject: format_wav: Support of MIME-type for wav16
......................................................................

format_wav: Support of MIME-type for wav16

Provided a support of a MIME-type for wav16. Added new MIME-type
for classic wav.

ASTERISK-29275 #close

Change-Id: I749bda287ba1ab20c1e0af5e4c0153817d47873b
---
M formats/format_wav.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/91/15391/1

diff --git a/formats/format_wav.c b/formats/format_wav.c
index ec7e3d3..886c8c1 100644
--- a/formats/format_wav.c
+++ b/formats/format_wav.c
@@ -517,6 +517,7 @@
 static struct ast_format_def wav16_f = {
 	.name = "wav16",
 	.exts = "wav16",
+	.mime_types = "audio/x-wav;codec=pcm;bit=16;rate=16000",
 	.open =	wav_open,
 	.rewrite = wav_rewrite,
 	.write = wav_write,
@@ -532,7 +533,7 @@
 static struct ast_format_def wav_f = {
 	.name = "wav",
 	.exts = "wav",
-	.mime_types = "audio/wav|audio/x-wav",
+	.mime_types = "audio/wav|audio/x-wav|audio/x-wav;codec=pcm;bit=16;rate=8000",
 	.open =	wav_open,
 	.rewrite = wav_rewrite,
 	.write = wav_write,

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15391
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I749bda287ba1ab20c1e0af5e4c0153817d47873b
Gerrit-Change-Number: 15391
Gerrit-PatchSet: 1
Gerrit-Owner: Boris P. Korzun <drtr0jan at yandex.ru>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210202/ad27353e/attachment.html>


More information about the asterisk-code-review mailing list