Mercurial > mplayer.hg
comparison libmpdemux/aviheader.c @ 17990:5f9f5c286716
100L to who wrote this. Also fix broken headers while at it.
author | albeu |
---|---|
date | Wed, 29 Mar 2006 19:31:31 +0000 |
parents | f70772d02eaa |
children | 77a3b0d11ca5 |
comparison
equal
deleted
inserted
replaced
17989:a9e0c9e0cb70 | 17990:5f9f5c286716 |
---|---|
223 stream_read(demuxer->stream, (char *)s->dwReserved, 3*4); | 223 stream_read(demuxer->stream, (char *)s->dwReserved, 3*4); |
224 memset(s->dwReserved, 0, 3*4); | 224 memset(s->dwReserved, 0, 3*4); |
225 | 225 |
226 print_avisuperindex_chunk(s,MSGL_V); | 226 print_avisuperindex_chunk(s,MSGL_V); |
227 | 227 |
228 msize = sizeof (uint32_t) * s->wLongsPerEntry * s->nEntriesInUse; | 228 // Check and fix this useless crap |
229 if(s->wLongsPerEntry != sizeof (avisuperindex_entry)/4) { | |
230 mp_msg (MSGT_HEADER, MSGL_WARN, "Broken super index chunk size: %u\n",s->wLongsPerEntry); | |
231 s->wLongsPerEntry = sizeof(avisuperindex_entry)/4; | |
232 } | |
233 msize = sizeof (avisuperindex_entry) * s->nEntriesInUse; | |
229 s->aIndex = malloc(msize); | 234 s->aIndex = malloc(msize); |
230 memset (s->aIndex, 0, msize); | 235 memset (s->aIndex, 0, msize); |
231 s->stdidx = malloc (s->nEntriesInUse * sizeof (avistdindex_chunk)); | 236 s->stdidx = malloc (s->nEntriesInUse * sizeof (avistdindex_chunk)); |
232 memset (s->stdidx, 0, s->nEntriesInUse * sizeof (avistdindex_chunk)); | 237 memset (s->stdidx, 0, s->nEntriesInUse * sizeof (avistdindex_chunk)); |
233 | 238 |