mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merged revisions 143903 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r143903 | seanbright | 2008-09-22 18:49:00 -0400 (Mon, 22 Sep 2008) | 8 lines Use the advertised header size in .au files instead of just assuming they are 24 bytes (the minimum). (closes issue #13450) Reported by: jamessan Patches: pcm-header.diff uploaded by jamessan (license 246) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@143904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -271,9 +271,10 @@ static int check_header(FILE *f)
|
|||||||
if (magic != (uint32_t) AU_MAGIC) {
|
if (magic != (uint32_t) AU_MAGIC) {
|
||||||
ast_log(LOG_WARNING, "Bad magic: 0x%x\n", magic);
|
ast_log(LOG_WARNING, "Bad magic: 0x%x\n", magic);
|
||||||
}
|
}
|
||||||
/* hdr_size = ltohl(header[AU_HDR_HDR_SIZE_OFF]);
|
hdr_size = ltohl(header[AU_HDR_HDR_SIZE_OFF]);
|
||||||
if (hdr_size < AU_HEADER_SIZE)*/
|
if (hdr_size < AU_HEADER_SIZE) {
|
||||||
hdr_size = AU_HEADER_SIZE;
|
hdr_size = AU_HEADER_SIZE;
|
||||||
|
}
|
||||||
/* data_size = ltohl(header[AU_HDR_DATA_SIZE_OFF]); */
|
/* data_size = ltohl(header[AU_HDR_DATA_SIZE_OFF]); */
|
||||||
encoding = ltohl(header[AU_HDR_ENCODING_OFF]);
|
encoding = ltohl(header[AU_HDR_ENCODING_OFF]);
|
||||||
if (encoding != AU_ENC_8BIT_ULAW) {
|
if (encoding != AU_ENC_8BIT_ULAW) {
|
||||||
|
Reference in New Issue
Block a user