changeset 21840:06b71b6fdde7

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 ?
author michael
date Mon, 08 Jan 2007 16:23:31 +0000
parents 006093adc56c
children 4cdc4b2cd3da
files libmpdemux/muxer_avi.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_avi.c	Mon Jan 08 06:34:34 2007 +0000
+++ b/libmpdemux/muxer_avi.c	Mon Jan 08 16:23:31 2007 +0000
@@ -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 */