mirror of
https://github.com/schnaader/precomp-cpp
synced 2026-08-23 00:23:04 -04:00
[WIP] Support zlib streams over 2 GB
base64_reencode
This commit is contained in:
parent
446f335423
commit
621d8dca4d
2 changed files with 4 additions and 4 deletions
|
|
@ -8552,15 +8552,15 @@ unsigned char base64_char_decode(unsigned char c) {
|
|||
return 65; // invalid
|
||||
}
|
||||
|
||||
void base64_reencode(FILE* file_in, FILE* file_out, int line_count, unsigned int* base64_line_len, int max_in_count, int max_byte_count) {
|
||||
void base64_reencode(FILE* file_in, FILE* file_out, int line_count, unsigned int* base64_line_len, long long max_in_count, long long max_byte_count) {
|
||||
int line_nr = 0;
|
||||
unsigned int act_line_len = 0;
|
||||
int avail_in;
|
||||
unsigned char a,b,c;
|
||||
int i;
|
||||
int act_byte_count = 0;
|
||||
long long act_byte_count = 0;
|
||||
|
||||
int remaining_bytes = max_in_count;
|
||||
long long remaining_bytes = max_in_count;
|
||||
|
||||
do {
|
||||
if (remaining_bytes > DIV3CHUNK) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ void try_decompression_base64(int gzip_header_length);
|
|||
|
||||
void init_decompression_variables();
|
||||
unsigned char base64_char_decode(unsigned char c);
|
||||
void base64_reencode(FILE* file_in, FILE* file_out, int line_count, unsigned int* base64_line_len, int max_in_count = 0x7FFFFFFF, int max_byte_count = 0x7FFFFFFF);
|
||||
void base64_reencode(FILE* file_in, FILE* file_out, int line_count, unsigned int* base64_line_len, long long max_in_count = 0x7FFFFFFFFFFFFFFF, long long max_byte_count = 0x7FFFFFFFFFFFFFFF);
|
||||
|
||||
void packjpg_mp3_dll_msg();
|
||||
bool is_valid_mp3_frame(unsigned char* frame_data, unsigned char header2, unsigned char header3, int protection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue