summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_aud.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_aud.c')
-rw-r--r--src/demuxers/demux_aud.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demuxers/demux_aud.c b/src/demuxers/demux_aud.c
index ea57a6939..23ba15df8 100644
--- a/src/demuxers/demux_aud.c
+++ b/src/demuxers/demux_aud.c
@@ -97,7 +97,7 @@ static int open_aud_file(demux_aud_t *this) {
* of numbers. There is a 80002/16777216 = 0.48% chance of a false
* positive.
*/
- this->audio_samplerate = LE_16(&header[0]);
+ this->audio_samplerate = _X_LE_16(&header[0]);
if ((this->audio_samplerate < 8000) || (this->audio_samplerate > 48000))
return 0;
@@ -133,7 +133,7 @@ static int demux_aud_send_chunk(demux_plugin_t *this_gen) {
demux_aud_t *this = (demux_aud_t *) this_gen;
unsigned char chunk_preamble[AUD_CHUNK_PREAMBLE_SIZE];
- unsigned int chunk_size;
+ int chunk_size;
off_t current_file_pos;
int64_t audio_pts;
buf_element_t *buf;
@@ -145,12 +145,12 @@ static int demux_aud_send_chunk(demux_plugin_t *this_gen) {
}
/* validate the chunk */
- if (LE_32(&chunk_preamble[4]) != 0x0000DEAF) {
+ if (_X_LE_32(&chunk_preamble[4]) != 0x0000DEAF) {
this->status = DEMUX_FINISHED;
return this->status;
}
- chunk_size = LE_16(&chunk_preamble[0]);
+ chunk_size = _X_LE_16(&chunk_preamble[0]);
current_file_pos = this->input->get_current_pos(this->input) -
this->data_start;