gst/matroska/matroska-demux.c: Fix possible crasher.

Original commit message from CVS:
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_parse_blockgroup):
Fix possible crasher.
This commit is contained in:
Ronald S. Bultje 2004-12-18 22:47:47 +00:00
parent 59726ae2df
commit d209b3de10
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_parse_blockgroup):
Fix possible crasher.
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/matroska/matroska-demux.c: (gst_matroska_ebmlnum_uint),

View file

@ -1884,7 +1884,8 @@ gst_matroska_demux_parse_blockgroup (GstMatroskaDemux * demux,
lace_size[n] = lace_size[n - 1] + snum;
total += lace_size[n];
}
lace_size[n] = size - total;
if (n < laces)
lace_size[n] = size - total;
break;
}
}