[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.83,1.84
Michael Niedermayer CVS
michael
Sat May 21 12:41:54 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv18531
Modified Files:
mov.c
Log Message:
update current_sample number for non split mode
fix chunk split decission
Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- mov.c 21 May 2005 10:25:58 -0000 1.83
+++ mov.c 21 May 2005 10:41:52 -0000 1.84
@@ -1942,14 +1942,13 @@
}
#endif //MOV_MINOLTA_FIX
+ idx = sc->sample_to_chunk_index;
+ if (idx + 1 < sc->sample_to_chunk_sz && sc->next_chunk >= sc->sample_to_chunk[idx + 1].first)
+ idx++;
+ sc->sample_to_chunk_index = idx;
#ifdef MOV_SPLIT_CHUNKS
/* split chunks into samples */
- if (sc->sample_size == 0) {
- idx = sc->sample_to_chunk_index;
- if ((idx + 1 < sc->sample_to_chunk_sz)
- && (sc->next_chunk >= sc->sample_to_chunk[idx + 1].first))
- idx++;
- sc->sample_to_chunk_index = idx;
+ if (sc->sample_size == 0 || sc->sample_size > 100) {
if (idx >= 0 && sc->sample_to_chunk[idx].count != 1) {
mov->partial = sc;
/* we'll have to get those samples before next chunk */
@@ -1958,6 +1957,8 @@
}
sc->current_sample++;
+ }else if(idx + 1 < sc->sample_to_chunk_sz){
+ sc->current_sample += sc->sample_size * sc->sample_to_chunk[idx].count;
}
#endif
More information about the ffmpeg-cvslog
mailing list