diff --git a/src/common/common.cpp b/src/common/common.cpp index 256a38848..7c17a21a6 100644 --- a/src/common/common.cpp +++ b/src/common/common.cpp @@ -431,7 +431,7 @@ get_uint64_be(const void *buf) { void put_uint16_le(void *buf, - uint16_t value) { + uint16_t value) { unsigned char *tmp; tmp = (unsigned char *) buf; @@ -442,7 +442,7 @@ put_uint16_le(void *buf, void put_uint32_le(void *buf, - uint32_t value) { + uint32_t value) { unsigned char *tmp; tmp = (unsigned char *) buf; @@ -455,7 +455,7 @@ put_uint32_le(void *buf, void put_uint64_le(void *buf, - uint64_t value) { + uint64_t value) { unsigned char *tmp; tmp = (unsigned char *) buf; diff --git a/src/extract/tracks.cpp b/src/extract/tracks.cpp index e229bb6cc..f84e8b3b5 100644 --- a/src/extract/tracks.cpp +++ b/src/extract/tracks.cpp @@ -532,8 +532,8 @@ create_output_files() { put_uint16_le(&wh->common.wChannels, tracks[i].a_channels); put_uint32_le(&wh->common.dwSamplesPerSec, (int)tracks[i].a_sfreq); put_uint32_le(&wh->common.dwAvgBytesPerSec, - tracks[i].a_channels * (int)tracks[i].a_sfreq * - tracks[i].a_bps / 8); + tracks[i].a_channels * (int)tracks[i].a_sfreq * + tracks[i].a_bps / 8); put_uint16_le(&wh->common.wBlockAlign, 4); put_uint16_le(&wh->common.wBitsPerSample, tracks[i].a_bps); memcpy(&wh->data.id, "data", 4); @@ -1079,14 +1079,14 @@ close_files() { 1000000000ll; mxverb(2, "ladu: %lld\n", tracks[i].last_duration); put_uint32_le(&tta_header.data_length, - (uint32_t)(tracks[i].a_sfreq * - (TTA_FRAME_TIME * - (tracks[i].frame_sizes.size() - 1) + - (double)tracks[i].last_duration / - 1000000000.0l))); + (uint32_t)(tracks[i].a_sfreq * + (TTA_FRAME_TIME * + (tracks[i].frame_sizes.size() - 1) + + (double)tracks[i].last_duration / + 1000000000.0l))); put_uint32_le(&tta_header.crc, - calc_crc32((unsigned char *)&tta_header, - sizeof(tta_file_header_t) - 4)); + calc_crc32((unsigned char *)&tta_header, + sizeof(tta_file_header_t) - 4)); tracks[i].out->write(&tta_header, sizeof(tta_file_header_t)); buffer = (unsigned char *)safemalloc(tracks[i].frame_sizes.size() * 4); diff --git a/src/input/r_ogm.cpp b/src/input/r_ogm.cpp index dae4610db..587a9ccd4 100644 --- a/src/input/r_ogm.cpp +++ b/src/input/r_ogm.cpp @@ -77,9 +77,9 @@ extract_vorbis_comments(unsigned char *buffer, comments = NULL; try { in.skip(7); // 0x03 "vorbis" - n = in.read_uint32_le(); // vendor_length + n = in.read_uint32_le(); // vendor_length in.skip(n); // vendor_string - n = in.read_uint32_le(); // user_comment_list_length + n = in.read_uint32_le(); // user_comment_list_length comments = (char **)safemalloc((n + 1) * sizeof(char *)); memset(comments, 0, (n + 1) * sizeof(char *)); for (i = 0; i < n; i++) {