100L to who wrote this. Also fix broken headers while at it.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17991 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2006-03-29 19:31:31 +00:00
parent f35e617c50
commit 42a11b39c9
1 changed files with 6 additions and 1 deletions

View File

@ -225,7 +225,12 @@ while(1){
print_avisuperindex_chunk(s,MSGL_V);
msize = sizeof (uint32_t) * s->wLongsPerEntry * s->nEntriesInUse;
// Check and fix this useless crap
if(s->wLongsPerEntry != sizeof (avisuperindex_entry)/4) {
mp_msg (MSGT_HEADER, MSGL_WARN, "Broken super index chunk size: %u\n",s->wLongsPerEntry);
s->wLongsPerEntry = sizeof(avisuperindex_entry)/4;
}
msize = sizeof (avisuperindex_entry) * s->nEntriesInUse;
s->aIndex = malloc(msize);
memset (s->aIndex, 0, msize);
s->stdidx = malloc (s->nEntriesInUse * sizeof (avistdindex_chunk));