mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
100l, fix calloc being called with the wrong argument due to reordering
two lines in SVN r27263 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27303 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4a46fcaebc
commit
2f5b26277f
@ -1887,7 +1887,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
"MOV: %*sEdit list table (%d entries) (ver:%d,flags:%d)\n", level, "",
|
||||
entries, ver, flags);
|
||||
#if 1
|
||||
trak->editlist = calloc(trak->editlist_size, sizeof(mov_editlist_t));
|
||||
trak->editlist = calloc(entries, sizeof(mov_editlist_t));
|
||||
trak->editlist_size = trak->editlist ? entries : 0;
|
||||
for (i = 0; i < trak->editlist_size; i++) {
|
||||
int dur = stream_read_dword(demuxer->stream);
|
||||
|
Loading…
Reference in New Issue
Block a user