[MPlayer-cvslog] r21858 - trunk/libmpdemux/muxer_avi.c
michael
subversion at mplayerhq.hu
Mon Jan 8 17:23:31 CET 2007
Author: michael
Date: Mon Jan 8 17:23:31 2007
New Revision: 21858
Modified:
trunk/libmpdemux/muxer_avi.c
Log:
dont write an index and dont use memory to build one if -noidx is specified
... maybe this should use its own option though instead of using -noidx ?
Modified: trunk/libmpdemux/muxer_avi.c
==============================================================================
--- trunk/libmpdemux/muxer_avi.c (original)
+++ trunk/libmpdemux/muxer_avi.c Mon Jan 8 17:23:31 2007
@@ -201,7 +201,7 @@
avifile_write_header(muxer);
stream_seek(muxer->stream, pos);
}
-
+ if(index_mode){
rifflen = muxer->file_end - vsi->riffofs[vsi->riffofspos] - 8;
if (vsi->riffofspos == 0) {
rifflen += 8+muxer->idx_pos*sizeof(AVIINDEXENTRY);
@@ -235,7 +235,7 @@
si->idx[si->idxpos].ofs=muxer->file_end;
si->idx[si->idxpos].len=len;
++si->idxpos;
-
+ }
// write out the chunk:
write_avi_chunk(muxer->stream,s->ckid,len,s->buffer); /* unsigned char */
More information about the MPlayer-cvslog
mailing list