diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-17 20:57:37 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-17 20:57:37 +0200 |
commit | 9acdd1f2356605d742f236ca275460dd9928bb11 (patch) | |
tree | 8ddba80cdf284cafdcac44de39f8099f396c0ed4 /src/demuxers/demux_aiff.c | |
parent | 42dc706af7a1f43c7ded0cc28957c8beb9ab08b1 (diff) | |
parent | 5935b6fbe5c4d83ea35a1464b3a1c32e00b23304 (diff) | |
download | xine-lib-9acdd1f2356605d742f236ca275460dd9928bb11.tar.gz xine-lib-9acdd1f2356605d742f236ca275460dd9928bb11.tar.bz2 |
Merge changes from Solaris branch. (1.2 branch commit).
Diffstat (limited to 'src/demuxers/demux_aiff.c')
-rw-r--r-- | src/demuxers/demux_aiff.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/demuxers/demux_aiff.c b/src/demuxers/demux_aiff.c index f88c58572..2039a3958 100644 --- a/src/demuxers/demux_aiff.c +++ b/src/demuxers/demux_aiff.c @@ -96,8 +96,8 @@ static int open_aiff_file(demux_aiff_t *this) { return 0; /* check the signature */ - if ((BE_32(&signature[0]) != FORM_TAG) || - (BE_32(&signature[8]) != AIFF_TAG)) + if ((_X_BE_32(&signature[0]) != FORM_TAG) || + (_X_BE_32(&signature[8]) != AIFF_TAG)) return 0; /* file is qualified; skip over the header bytes in the stream */ @@ -118,8 +118,8 @@ static int open_aiff_file(demux_aiff_t *this) { this->status = DEMUX_FINISHED; return 0; } - chunk_type = BE_32(&preamble[0]); - chunk_size = BE_32(&preamble[4]); + chunk_type = _X_BE_32(&preamble[0]); + chunk_size = _X_BE_32(&preamble[4]); if (chunk_size > sizeof(buffer) / sizeof(buffer[0])) { /* the chunk is too large to fit in the buffer -> this cannot be an aiff chunk */ @@ -134,10 +134,10 @@ static int open_aiff_file(demux_aiff_t *this) { return 0; } - this->audio_channels = BE_16(&buffer[0]); - this->audio_frames = BE_32(&buffer[2]); - this->audio_bits = BE_16(&buffer[6]); - this->audio_sample_rate = BE_16(&buffer[0x0A]); + this->audio_channels = _X_BE_16(&buffer[0]); + this->audio_frames = _X_BE_32(&buffer[2]); + this->audio_bits = _X_BE_16(&buffer[6]); + this->audio_sample_rate = _X_BE_16(&buffer[0x0A]); this->audio_bytes_per_second = this->audio_channels * (this->audio_bits / 8) * this->audio_sample_rate; |