mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
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 ? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21858 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
87c188baf6
commit
2394b7da95
@ -201,7 +201,7 @@ static void avifile_write_chunk(muxer_stream_t *s,size_t len,unsigned int flags,
|
||||
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 @@ static void avifile_write_chunk(muxer_stream_t *s,size_t len,unsigned int flags,
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user