summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_roq.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_roq.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_roq.c')
-rw-r--r--src/demuxers/demux_roq.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/demuxers/demux_roq.c b/src/demuxers/demux_roq.c
index 0e7c93b97..10137be7f 100644
--- a/src/demuxers/demux_roq.c
+++ b/src/demuxers/demux_roq.c
@@ -95,8 +95,8 @@ static int open_roq_file(demux_roq_t *this) {
return 0;
/* check for the RoQ magic numbers */
- if ((LE_16(&preamble[0]) != RoQ_MAGIC_NUMBER) ||
- (LE_32(&preamble[2]) != 0xFFFFFFFF))
+ if ((_X_LE_16(&preamble[0]) != RoQ_MAGIC_NUMBER) ||
+ (_X_LE_32(&preamble[2]) != 0xFFFFFFFF))
return 0;
this->bih.biSize = sizeof(xine_bmiheader);
@@ -112,7 +112,7 @@ static int open_roq_file(demux_roq_t *this) {
*
* therefore, the frame pts increment is 90000 / fps
*/
- fps = LE_16(&preamble[6]);
+ fps = _X_LE_16(&preamble[6]);
this->frame_pts_inc = 90000 / fps;
/* iterate through the first 2 seconds worth of chunks searching for
@@ -124,16 +124,16 @@ static int open_roq_file(demux_roq_t *this) {
if (this->input->read(this->input, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
RoQ_CHUNK_PREAMBLE_SIZE)
break;
- chunk_type = LE_16(&preamble[0]);
- chunk_size = LE_32(&preamble[2]);
+ chunk_type = _X_LE_16(&preamble[0]);
+ chunk_size = _X_LE_32(&preamble[2]);
if (chunk_type == RoQ_INFO) {
/* fetch the width and height; reuse the preamble bytes */
if (this->input->read(this->input, preamble, 8) != 8)
break;
- this->bih.biWidth = LE_16(&preamble[0]);
- this->bih.biHeight = LE_16(&preamble[2]);
+ this->bih.biWidth = _X_LE_16(&preamble[0]);
+ this->bih.biHeight = _X_LE_16(&preamble[2]);
/* if an audio chunk was already found, search is done */
if (this->wave.nChannels)
@@ -188,8 +188,8 @@ static int demux_roq_send_chunk(demux_plugin_t *this_gen) {
this->status = DEMUX_FINISHED;
return this->status;
}
- chunk_type = LE_16(&preamble[0]);
- chunk_size = LE_32(&preamble[2]);
+ chunk_type = _X_LE_16(&preamble[0]);
+ chunk_size = _X_LE_32(&preamble[2]);
/* if the chunk is an audio chunk, route it to the audio fifo */
if ((chunk_type == RoQ_SOUND_MONO) || (chunk_type == RoQ_SOUND_STEREO)) {