[MPlayer-cvslog] r27304 - trunk/libmpdemux/demux_mov.c

reimar subversion at mplayerhq.hu
Wed Jul 16 19:48:34 CEST 2008


Author: reimar
Date: Wed Jul 16 19:48:34 2008
New Revision: 27304

Log:
And a 1000l for r27263, swapped a condition, thus setting size to
0 when malloc succeeded instead of when it failed.


Modified:
   trunk/libmpdemux/demux_mov.c

Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c	(original)
+++ trunk/libmpdemux/demux_mov.c	Wed Jul 16 19:48:34 2008
@@ -1751,7 +1751,7 @@ static int lschunks_intrak(demuxer_t* de
              "MOV: %*sSample duration table! (%d blocks)\n", level, "",
              len);
       trak->durmap = calloc(len, sizeof(mov_durmap_t));
-      trak->durmap_size = trak->durmap ? 0 : len;
+      trak->durmap_size = trak->durmap ? len : 0;
       for (i = 0; i < trak->durmap_size; i++) {
         trak->durmap[i].num = stream_read_dword(demuxer->stream);
         trak->durmap[i].dur = stream_read_dword(demuxer->stream);



More information about the MPlayer-cvslog mailing list