[Mplayer-cvslog] CVS: main/libmpdemux stream.h,1.22,1.23
Arpi
arpi at thot.banki.hu
Sat Jan 5 22:35:49 CET 2002
Hi,
ehh.
uint64_t is not standard.
and not too portable.
shoudl add some checks to configure
> Update of /cvsroot/mplayer/main/libmpdemux
> In directory mplayer:/var/tmp.root/cvs-serv11804
>
> Modified Files:
> stream.h
> Log Message:
> added stream_read_qword by Chris Bednar
>
> Index: stream.h
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/stream.h,v
> retrieving revision 1.22
> retrieving revision 1.23
> diff -u -r1.22 -r1.23
> --- stream.h 3 Jan 2002 11:59:43 -0000 1.22
> +++ stream.h 5 Jan 2002 19:21:06 -0000 1.23
> @@ -96,6 +96,19 @@
> return y;
> }
>
> +inline static uint64_t stream_read_qword(stream_t *s){
> + uint64_t y;
> + y = stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + y=(y<<8)|stream_read_char(s);
> + return y;
> +}
> +
> inline static int stream_read(stream_t *s,char* mem,int total){
> int len=total;
> while(len>0){
>
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
>
>
A'rpi / Astral & ESP-team
--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu
More information about the MPlayer-cvslog
mailing list