[MPlayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.93,1.94
Oded Shimon CVS
syncmail at mplayerhq.hu
Sun Jan 22 06:57:48 CET 2006
CVS change done by Oded Shimon CVS
Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var2/tmp/cvs-serv17674/DOCS/tech
Modified Files:
mpcf.txt
Log Message:
Interleave index to ease per-need decoding.
Index: mpcf.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/mpcf.txt,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- mpcf.txt 20 Jan 2006 19:12:22 -0000 1.93
+++ mpcf.txt 22 Jan 2006 05:57:46 -0000 1.94
@@ -229,28 +229,29 @@
syncpoint_pos_div8 v
}
for(i=0; i<stream_count; i++){
- for(j=0; j<syncpoint_count; ){
+ for(j=0; j<syncpoints; ){
x v
type= x & 1
x>>=1
+ n=j
if(type){
flag= x & 1
x>>=1
while(x--)
- has_keyframe[j++][i]=flag
- has_keyframe[j++][i]=!flag;
+ has_keyframe[n++][i]=flag
+ has_keyframe[n++][i]=!flag;
}else{
while(x != 1){
- has_keyframe[j++][i]=x&1;
+ has_keyframe[n++][i]=x&1;
x>>=1;
}
}
- }
- for(j=0; j<syncpoint_count; j++){
- if (!has_keyframe[j++][i]) continue
- A v
- last_pts += A
- keyframe_pts[j][i] = last_pts
+ for(; j<n && j<syncpoints; j++){
+ if (!has_keyframe[j][i]) continue
+ A v
+ last_pts += A
+ keyframe_pts[j][i] = last_pts
+ }
}
}
reserved_bytes
More information about the MPlayer-cvslog
mailing list