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

George Joseph asteriskteam at digium.com
Fri Feb 12 07:21:04 CST 2021


George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/15414 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved; Approved for Submit



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/+/15414
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I749bda287ba1ab20c1e0af5e4c0153817d47873b
Gerrit-Change-Number: 15414
Gerrit-PatchSet: 2
Gerrit-Owner: Boris P. Korzun <drtr0jan at yandex.ru>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210212/de3f16fb/attachment.html>


More information about the asterisk-code-review mailing list