[asterisk-commits] newtonr: branch 11 r407512 - in /branches/11: ./ formats/format_wav.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 5 16:59:55 CST 2014
Author: newtonr
Date: Wed Feb 5 16:59:39 2014
New Revision: 407512
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407512
Log:
formats/format_wav: enhancing log message "Not a wav file" to be clear on what is supported
Modifying the log message to be more specific as to what is supported. Specifically it seems format_wav supports only PCM encoded versions with a lower-case '.wav' extension.
(closes issues ASTERISK-22310)
Reported by: Jim Credland
Review: https://reviewboard.asterisk.org/r/3188/
........
Merged revisions 407511 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/formats/format_wav.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/formats/format_wav.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/formats/format_wav.c?view=diff&rev=407512&r1=407511&r2=407512
==============================================================================
--- branches/11/formats/format_wav.c (original)
+++ branches/11/formats/format_wav.c Wed Feb 5 16:59:39 2014
@@ -91,7 +91,7 @@
return -1;
}
if (ltohs(format) != 1) {
- ast_log(LOG_WARNING, "Not a wav file %d\n", ltohs(format));
+ ast_log(LOG_WARNING, "Not a supported wav file format (%d). Only PCM encoded, 16 bit, mono, 8kHz files are supported with a lowercase '.wav' extension.\n", ltohs(format));
return -1;
}
if (fread(&chans, 1, 2, f) != 2) {
More information about the asterisk-commits
mailing list