make sure the indx chunk is big enough to hold the basic structure.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18053 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2006-04-06 21:49:12 +00:00
parent 9641a1433c
commit 37b31c74a8
1 changed files with 3 additions and 0 deletions

View File

@ -207,6 +207,9 @@ while(1){
case mmioFOURCC('i', 'n', 'd', 'x'): {
uint32_t i;
avisuperindex_chunk *s;
if(chunksize<=24){
break;
}
priv->suidx_size++;
priv->suidx = realloc(priv->suidx, priv->suidx_size * sizeof (avisuperindex_chunk));
s = &priv->suidx[priv->suidx_size-1];