diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-16 15:11:56 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-16 15:11:56 +0200 |
commit | f86215baf77d5b928a047d83ea19ea442f2a83f9 (patch) | |
tree | f663dc788902b722657e745ce9144a5116c82022 /src/demuxers/demux_pva.c | |
parent | ca74f1ccdf190bdd0beff7dfc7722a11b43b649d (diff) | |
download | xine-lib-f86215baf77d5b928a047d83ea19ea442f2a83f9.tar.gz xine-lib-f86215baf77d5b928a047d83ea19ea442f2a83f9.tar.bz2 |
Rename the BE/LE/ME macros with a _X_ prefix, so they don't clash with Solaris definitions.
Diffstat (limited to 'src/demuxers/demux_pva.c')
-rw-r--r-- | src/demuxers/demux_pva.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/demuxers/demux_pva.c b/src/demuxers/demux_pva.c index 55b1f7644..1b358eb1f 100644 --- a/src/demuxers/demux_pva.c +++ b/src/demuxers/demux_pva.c @@ -145,7 +145,7 @@ static int demux_pva_send_chunk(demux_plugin_t *this_gen) { return this->status; } - chunk_size = BE_16(&preamble[6]); + chunk_size = _X_BE_16(&preamble[6]); current_file_pos = this->input->get_current_pos(this->input); @@ -160,7 +160,7 @@ static int demux_pva_send_chunk(demux_plugin_t *this_gen) { return this->status; } chunk_size -= 4; - pts = BE_32(&pts_buf[0]); + pts = _X_BE_32(&pts_buf[0]); check_newpts( this, pts, PTS_VIDEO ); } else pts = 0; @@ -207,11 +207,11 @@ static int demux_pva_send_chunk(demux_plugin_t *this_gen) { this->status = DEMUX_FINISHED; return this->status; } - if (BE_32(&preamble[0]) != 0x000001C0) { + if (_X_BE_32(&preamble[0]) != 0x000001C0) { this->status = DEMUX_FINISHED; return this->status; } - chunk_size = BE_16(&preamble[4]); + chunk_size = _X_BE_16(&preamble[4]); /* get next 3 header bytes */ if (this->input->read(this->input, preamble, 3) != 3) { @@ -234,8 +234,8 @@ static int demux_pva_send_chunk(demux_plugin_t *this_gen) { } pts = (int64_t)(preamble[0] & 0x0e) << 29 ; - pts |= (BE_16(&preamble[1]) & 0xFFFE) << 14; - pts |= (BE_16(&preamble[3]) & 0xFFFE) >> 1; + pts |= (_X_BE_16(&preamble[1]) & 0xFFFE) << 14; + pts |= (_X_BE_16(&preamble[3]) & 0xFFFE) >> 1; header_len -= 5 ; |