codecparsers: mpeg4: fix parsing when recursively skipping user data

This commit is contained in:
Mark Nauwelaerts 2012-01-09 14:56:29 +01:00
parent 2dc41db862
commit 360cbaa46c

View 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 (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 /* If we are here, we know no resync code has been found the first time, so we
* don't look for it this time */ * don't look for it this time */
return gst_mpeg4_parse (packet, skip_user_data, NULL, data, off1 + 3, return gst_mpeg4_parse (packet, skip_user_data, NULL, data, off1 + 3, size);
size - off1 - 3);
packet->offset = off1 + 3; packet->offset = off1 + 3;
packet->data = data; packet->data = data;