aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'formats/format_pcm.c')
-rw-r--r--formats/format_pcm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 75d3ce66f..60f32892f 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -271,9 +271,10 @@ static int check_header(FILE *f)
if (magic != (uint32_t) AU_MAGIC) {
ast_log(LOG_WARNING, "Bad magic: 0x%x\n", magic);
}
-/* hdr_size = ltohl(header[AU_HDR_HDR_SIZE_OFF]);
- if (hdr_size < AU_HEADER_SIZE)*/
- hdr_size = AU_HEADER_SIZE;
+ hdr_size = ltohl(header[AU_HDR_HDR_SIZE_OFF]);
+ if (hdr_size < AU_HEADER_SIZE) {
+ hdr_size = AU_HEADER_SIZE;
+ }
/* data_size = ltohl(header[AU_HDR_DATA_SIZE_OFF]); */
encoding = ltohl(header[AU_HDR_ENCODING_OFF]);
if (encoding != AU_ENC_8BIT_ULAW) {