1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

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

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));