changeset 31616:3da109629fca

Remove completely nonsensical le2me usages, the only effect they had was breaking playback on big-endian.
author reimar
date Sat, 10 Jul 2010 22:49:28 +0000
parents 29f48c6e3056
children 91b59ae45d76
files libmpdemux/demux_pva.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_pva.c	Sat Jul 10 22:33:49 2010 +0000
+++ b/libmpdemux/demux_pva.c	Sat Jul 10 22:49:28 2010 +0000
@@ -360,7 +360,7 @@
 	}
 	flags=stream_read_char(d->stream);
 	payload->is_packet_start=flags & 0x10;
-	pack_size=le2me_16(stream_read_word(d->stream));
+	pack_size=stream_read_word(d->stream);
 	mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_pva::pva_get_payload(): pack_size=%u field read at offset %"PRIu64"\n",pack_size,(int64_t)stream_tell(d->stream)-2);
 	pva_payload_start=stream_tell(d->stream);
 	next_offset=pva_payload_start+pack_size;
@@ -400,7 +400,7 @@
 		switch(payload->type)
 		{
 			case VIDEOSTREAM:
-				payload->pts=(float)(le2me_32(stream_read_dword(d->stream)))/90000;
+				payload->pts=(float)(stream_read_dword(d->stream))/90000;
 				//printf("Video PTS: %f\n",payload->pts);
 				if((flags&0x03)
 #ifdef PVA_NEW_PREBYTES_CODE
@@ -466,7 +466,7 @@
 						/*
 					 	* PTS parsing is hopefully finished.
 					 	*/
-						payload->pts=(float)le2me_64(temp_pts)/90000;
+						payload->pts=(float)temp_pts/90000;
 					}
 				}
 				payload->offset=stream_tell(d->stream);