[MPlayer-cvslog] r31682 - trunk/libmpdemux/demux_pva.c

reimar subversion at mplayerhq.hu
Sun Jul 11 00:49:28 CEST 2010


Author: reimar
Date: Sun Jul 11 00:49:28 2010
New Revision: 31682

Log:
Remove completely nonsensical le2me usages, the only effect
they had was breaking playback on big-endian.

Modified:
   trunk/libmpdemux/demux_pva.c

Modified: trunk/libmpdemux/demux_pva.c
==============================================================================
--- trunk/libmpdemux/demux_pva.c	Sun Jul 11 00:33:49 2010	(r31681)
+++ trunk/libmpdemux/demux_pva.c	Sun Jul 11 00:49:28 2010	(r31682)
@@ -360,7 +360,7 @@ int pva_get_payload(demuxer_t * d,pva_pa
 	}
 	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 @@ int pva_get_payload(demuxer_t * d,pva_pa
 		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 @@ int pva_get_payload(demuxer_t * d,pva_pa
 						/*
 					 	* 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);


More information about the MPlayer-cvslog mailing list