From: Boris P. Korzun Date: Tue, 2 Feb 2021 08:33:22 +0000 (+0300) Subject: format_wav: Support of MIME-type for wav16 X-Git-Tag: 18.3.0-rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57d130d3aaab1a7ee06f5bd43ed7c191f3ad6b44;p=thirdparty%2Fasterisk.git 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 --- diff --git a/formats/format_wav.c b/formats/format_wav.c index ec7e3d3799..886c8c1378 100644 --- a/formats/format_wav.c +++ b/formats/format_wav.c @@ -517,6 +517,7 @@ static off_t wav_tell(struct ast_filestream *fs) 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 wav16_f = { 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,