terrible -idx bug fixed, thanx to Raphael Manfredi

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1500 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-12 22:36:05 +00:00
parent f416b9fc3b
commit d970d85401
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ if(index_mode>=2 || (priv->idx_size==0 && index_mode==1)){
if(stream_eof(demuxer->stream)) break;
if(!id || avi_stream_id(id)==100) goto skip_chunk; // bad ID (or padding?)
if(priv->idx_pos<=priv->idx_size){
if(priv->idx_pos>=priv->idx_size){
// priv->idx_size+=32;
priv->idx_size+=1024; // +16kB
priv->idx=realloc(priv->idx,priv->idx_size*sizeof(AVIINDEXENTRY));