typefind: remove unneeded test
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Oct 2014 11:08:05 +0000 (12:08 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 30 Oct 2014 11:42:02 +0000 (11:42 +0000)
We've already bailed out if we have less than 5 bytes.

Coverity 1226441

gst/typefind/gsttypefindfunctions.c

index 06689d9..74b4ee4 100644 (file)
@@ -505,8 +505,6 @@ xml_check_first_element_from_data (const guint8 * data, guint length,
 
   /* skip XMLDec in any case if we've got one */
   if (got_xmldec) {
-    if (pos + 5 >= length)
-      return FALSE;
     pos += 5;
     data += 5;
   }