codecparsers: mpeg4: fix parsing when recursively skipping user data
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 9 Jan 2012 13:56:29 +0000 (14:56 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 9 Jan 2012 14:03:30 +0000 (15:03 +0100)
gst-libs/gst/codecparsers/gstmpeg4parser.c

index fcaa419..4b0acb6 100644 (file)
@@ -473,8 +473,7 @@ gst_mpeg4_parse (GstMpeg4Packet * packet, gboolean skip_user_data,
   if (skip_user_data && data[off1 + 3] == GST_MPEG4_USER_DATA)
     /* If we are here, we know no resync code has been found the first time, so we
      * don't look for it this time */
-    return gst_mpeg4_parse (packet, skip_user_data, NULL, data, off1 + 3,
-        size - off1 - 3);
+    return gst_mpeg4_parse (packet, skip_user_data, NULL, data, off1 + 3, size);
 
   packet->offset = off1 + 3;
   packet->data = data;