Index: format_wav.c =================================================================== --- format_wav.c (revision 341433) +++ format_wav.c (working copy) @@ -129,8 +129,8 @@ return -1; } /* Skip any additional header */ - if (fseek(f,ltohl(hsize)-16,SEEK_CUR) == -1 ) { - ast_log(LOG_WARNING, "Failed to skip remaining header bytes: %d\n", ltohl(hsize)-16 ); + if (fseek(f,hsize-16,SEEK_CUR) == -1 ) { + ast_log(LOG_WARNING, "Failed to skip remaining header bytes: %d\n", hsize-16 ); return -1; } return 0;