summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-demux.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-08-21 12:34:33 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-21 12:34:33 +0000
commit812954d1e949d7c0d425f41222522a2324a65d5a (patch)
tree573d416860e177028b033c7ad41f92c2888bef16 /gst/matroska/matroska-demux.c
parent713e8000265bd190dd0940eed6889e4eb33d52e7 (diff)
gst/matroska/matroska-demux.c: Allow zero sized blocks instead of returning GST_FLOW_OK. Such blocks are used for tex...
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_blockgroup_or_simpleblock): Allow zero sized blocks instead of returning GST_FLOW_OK. Such blocks are used for text/plain subtitles as a gap-filler in some files.
Diffstat (limited to 'gst/matroska/matroska-demux.c')
-rw-r--r--gst/matroska/matroska-demux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 42ef2703..0179b4ed 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -3904,7 +3904,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
/* fetch stream from num */
stream_num = gst_matroska_demux_stream_from_num (demux, num);
- if (size <= 3 || stream_num < 0 || stream_num >= demux->num_streams) {
+ if (size < 3 || stream_num < 0 || stream_num >= demux->num_streams) {
gst_buffer_unref (buf);
buf = NULL;
GST_WARNING_OBJECT (demux, "Invalid stream %d or size %u", stream_num,
@@ -4135,9 +4135,6 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
GstBuffer *sub;
GstClockTimeDiff diff;
- if (lace_size[n] == 0)
- continue;
-
sub = gst_buffer_create_sub (buf,
GST_BUFFER_SIZE (buf) - size, lace_size[n]);