[Mplayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.26,1.27

Alex Beregszaszi alex at mplayerhq.hu
Sun May 4 20:58:08 CEST 2003


Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var/tmp.root/cvs-serv4725

Modified Files:
	mpcf.txt 
Log Message:
corrected the sample code

Index: mpcf.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/mpcf.txt,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- mpcf.txt	13 Mar 2003 15:50:41 -0000	1.26
+++ mpcf.txt	4 May 2003 18:57:39 -0000	1.27
@@ -540,7 +540,7 @@
 	return val;
 }
 
-static inline uint64_t get_v(ByteStream *bc){
+static inline uint64_t get_v(BufferContext *bc){
 	uint64_t val= 0;
 
 	for(; spaceLeft(bc) > 0; ){
@@ -554,7 +554,7 @@
 	return -1;
 }
 
-static inline int put_v(ByteStream *bc, uint64_t val){
+static inline int put_v(BufferContext *bc, uint64_t val){
 	int i;
         
 	if(spaceLeft(bc) < 9) return -1;
@@ -572,12 +572,12 @@
 	return 0;
 }
 
-static inline int put_s(ByteStream *bc, uint64_t val){
+static inline int put_s(BufferContext *bc, uint64_t val){
 	if(val<=0) return put_v(bc, -2*val  );
 	else       return put_v(bc,  2*val-1);
 }
 
-static inline int64_t get_s(ByteStream *bc){
+static inline int64_t get_s(BufferContext *bc){
 	int64_t v= get_v(bc) + 1;
 	if(v&1) return -(v>>1);
 	else    return  (v>>1);



More information about the MPlayer-cvslog mailing list