summaryrefslogtreecommitdiff
path: root/gst/videoparsers/gstvc1parse.c
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.decina@collabora.co.uk>2012-02-23 13:48:57 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-25 14:05:48 +0200
commit00abb674ca374aa122c8550c571d27aa687ef9f1 (patch)
treed557adfb34fc7f0c61eca9a5ddc60b621ef37422 /gst/videoparsers/gstvc1parse.c
parentd03f5499bdcb8be1416506d46ad9ac7003244f66 (diff)
vc1parse: disable BDU parsing until it's more mature
Parsing and splitting BDUs seems to trigger a few bugs in downstream decoders so disable it for now.
Diffstat (limited to 'gst/videoparsers/gstvc1parse.c')
-rw-r--r--gst/videoparsers/gstvc1parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/videoparsers/gstvc1parse.c b/gst/videoparsers/gstvc1parse.c
index 9763f32224..922394dc4d 100644
--- a/gst/videoparsers/gstvc1parse.c
+++ b/gst/videoparsers/gstvc1parse.c
@@ -420,6 +420,9 @@ gst_vc1_parse_detect (GstBaseParse * parse, GstBuffer * buffer)
data = GST_BUFFER_DATA (buffer);
size = GST_BUFFER_SIZE (buffer);
+#if 0
+ /* FIXME: disable BDU check for now as BDU parsing needs more work.
+ */
while (size >= 4) {
guint32 startcode = GST_READ_UINT32_BE (data);
@@ -432,6 +435,7 @@ gst_vc1_parse_detect (GstBaseParse * parse, GstBuffer * buffer)
data += 4;
size -= 4;
}
+#endif
data = GST_BUFFER_DATA (buffer);
size = GST_BUFFER_SIZE (buffer);
@@ -537,6 +541,9 @@ gst_vc1_parse_check_valid_frame (GstBaseParse * parse,
GST_DEBUG_OBJECT (vc1parse,
"Handling buffer of size %u at offset %" G_GUINT64_FORMAT, size,
GST_BUFFER_OFFSET (buffer));
+ /* XXX: when a buffer contains multiple BDUs, does the first one start with
+ * a startcode?
+ */
pres = gst_vc1_identify_next_bdu (data, size, &bdu);
switch (pres) {
case GST_VC1_PARSER_OK: