Cosmetics: Indentation

This commit is contained in:
Moritz Bunkus 2004-12-19 08:41:21 +00:00
parent b5b4b96e1b
commit a431fe2706
3 changed files with 14 additions and 14 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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++) {