[MPlayer-cvslog] CVS: main/libmpdemux demux_real.c,1.70,1.71
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Thu Mar 3 11:23:31 CET 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv20729/libmpdemux
Modified Files:
demux_real.c
Log Message:
Fix rm files with a really big index chunk.
Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- demux_real.c 24 Jan 2005 21:57:07 -0000 1.70
+++ demux_real.c 3 Mar 2005 10:23:28 -0000 1.71
@@ -245,6 +245,11 @@
priv->index_malloc_size[stream_id] = 2048;
else
priv->index_malloc_size[stream_id] += priv->index_malloc_size[stream_id] / 2;
+ // in case we have a really large chunk...
+ if (priv->index_table_size[stream_id] >=
+ priv->index_malloc_size[stream_id])
+ priv->index_malloc_size[stream_id] =
+ priv->index_table_size[stream_id] + 1;
priv->index_table[stream_id] = realloc(priv->index_table[stream_id], priv->index_malloc_size[stream_id]*sizeof(priv->index_table[0][0]));
}
if (priv->index_table_size[stream_id] > 0)
More information about the MPlayer-cvslog
mailing list