Mercurial > mplayer.hg
changeset 27271:e96d8e20bf69
100l, fix calloc being called with the wrong argument due to reordering
two lines in SVN r27263
author | reimar |
---|---|
date | Wed, 16 Jul 2008 17:28:19 +0000 |
parents | 44ebd7860248 |
children | 6d5c1d9bf273 |
files | libmpdemux/demux_mov.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Wed Jul 16 16:43:40 2008 +0000 +++ b/libmpdemux/demux_mov.c Wed Jul 16 17:28:19 2008 +0000 @@ -1887,7 +1887,7 @@ "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);