1
0
Fork 0
This commit is contained in:
hpi1 2017-07-07 00:29:03 +03:00
parent 3be8ac1bec
commit 34cecf1006
1 changed files with 5 additions and 5 deletions

View File

@ -705,14 +705,14 @@ _parse_playlistmark(BITSTREAM *bits, MPLS_PL *pl)
// Then get the number of marks
pl->mark_count = bs_read(bits, 16);
plm = calloc(pl->mark_count, sizeof(MPLS_PLM));
if (pl->mark_count && !plm) {
BD_DEBUG(DBG_CRIT, "out of memory\n");
if (bs_avail(bits)/(8*14) < pl->mark_count) {
BD_DEBUG(DBG_NAV | DBG_CRIT, "_parse_playlistmark: unexpected EOF\n");
return 0;
}
if (bs_avail(bits)/(8*14) < pl->mark_count) {
BD_DEBUG(DBG_NAV | DBG_CRIT, "_parse_playlistmark: unexpected EOF\n");
plm = calloc(pl->mark_count, sizeof(MPLS_PLM));
if (pl->mark_count && !plm) {
BD_DEBUG(DBG_CRIT, "out of memory\n");
return 0;
}