summaryrefslogtreecommitdiffstats
path: root/gst/matroska
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-12-18 22:47:47 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-12-18 22:47:47 +0000
commitd209b3de10cc690ddccd24eb03a63485b7db2c5a (patch)
treef6c0d4d11bf64968e5b7ee2e4226b84282a3b90a /gst/matroska
parent59726ae2df7bf826e7c546fee22641d5c651814a (diff)
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.
Diffstat (limited to 'gst/matroska')
-rw-r--r--gst/matroska/matroska-demux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 03ba7ce1..e4353c4a 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -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;
}
}