summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mpc.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-06-17 20:57:37 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-06-17 20:57:37 +0200
commit9acdd1f2356605d742f236ca275460dd9928bb11 (patch)
tree8ddba80cdf284cafdcac44de39f8099f396c0ed4 /src/demuxers/demux_mpc.c
parent42dc706af7a1f43c7ded0cc28957c8beb9ab08b1 (diff)
parent5935b6fbe5c4d83ea35a1464b3a1c32e00b23304 (diff)
downloadxine-lib-9acdd1f2356605d742f236ca275460dd9928bb11.tar.gz
xine-lib-9acdd1f2356605d742f236ca275460dd9928bb11.tar.bz2
Merge changes from Solaris branch. (1.2 branch commit).
Diffstat (limited to 'src/demuxers/demux_mpc.c')
-rw-r--r--src/demuxers/demux_mpc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/demuxers/demux_mpc.c b/src/demuxers/demux_mpc.c
index e1a3f28b9..86eb7bf3a 100644
--- a/src/demuxers/demux_mpc.c
+++ b/src/demuxers/demux_mpc.c
@@ -128,11 +128,11 @@ static int open_mpc_file(demux_mpc_t *this) {
/* Get frame count */
this->current_frame = 0;
- this->frames = LE_32(&this->header[4]);
+ this->frames = _X_LE_32(&this->header[4]);
lprintf("number of frames: %u\n", this->frames);
/* Get sample rate */
- switch ((LE_32(&this->header[8]) >> 16) & 0x3) {
+ switch ((_X_LE_32(&this->header[8]) >> 16) & 0x3) {
case 0:
this->samplerate = 44.1;
break;
@@ -155,7 +155,7 @@ static int open_mpc_file(demux_mpc_t *this) {
lprintf("stream length: %d ms\n", this->length);
/* Calculate the number of bits of the first frame that are still be sent */
- first_frame_size = (LE_32(&this->header[24]) >> 4) & 0xFFFFF;
+ first_frame_size = (_X_LE_32(&this->header[24]) >> 4) & 0xFFFFF;
this->next_frame_bits = first_frame_size - 4;
lprintf("first frame size: %u\n", first_frame_size);
@@ -164,7 +164,7 @@ static int open_mpc_file(demux_mpc_t *this) {
/* Set stream info */
_x_stream_info_set(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1);
- _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC, ME_32(this->header));
+ _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC, _X_ME_32(this->header));
return 1;
}
@@ -229,10 +229,10 @@ static int demux_mpc_send_chunk(demux_plugin_t *this_gen) {
extra_bits_read = bits_to_read - (this->next_frame_bits+20);
if(extra_bits_read <= 12)
- next_frame_size = (LE_32(&buf->content[bytes_to_read-4]) >> extra_bits_read) & 0xFFFFF;
+ next_frame_size = (_X_LE_32(&buf->content[bytes_to_read-4]) >> extra_bits_read) & 0xFFFFF;
else
- next_frame_size = ((LE_32(&buf->content[bytes_to_read-8]) << (32-extra_bits_read)) |
- (LE_32(&buf->content[bytes_to_read-4]) >> extra_bits_read)) & 0xFFFFF;
+ next_frame_size = ((_X_LE_32(&buf->content[bytes_to_read-8]) << (32-extra_bits_read)) |
+ (_X_LE_32(&buf->content[bytes_to_read-4]) >> extra_bits_read)) & 0xFFFFF;
lprintf("next frame size: %u\n", next_frame_size);