[MPlayer-cvslog] r36630 - trunk/libmpdemux/demux_mkv.c
reimar
subversion at mplayerhq.hu
Sun Jan 19 12:32:51 CET 2014
Author: reimar
Date: Sun Jan 19 12:32:51 2014
New Revision: 36630
Log:
mkv: replace a missed "return 0" by "goto err_out".
Fixes a memory leak in this error case.
Modified:
trunk/libmpdemux/demux_mkv.c
Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c Sun Jan 19 12:30:06 2014 (r36629)
+++ trunk/libmpdemux/demux_mkv.c Sun Jan 19 12:32:51 2014 (r36630)
@@ -788,7 +788,7 @@ static int demux_mkv_read_trackentry(dem
{
uint64_t num = ebml_read_uint(s, &l);
if (num == EBML_UINT_INVALID)
- return 0;
+ goto err_out;
track->type = num;
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] | + Track type: ");
switch (track->type) {
More information about the MPlayer-cvslog
mailing list