From 360cbaa46c4949a8ce3c53a70147d297c089d3de Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 9 Jan 2012 14:56:29 +0100 Subject: [PATCH] codecparsers: mpeg4: fix parsing when recursively skipping user data --- gst-libs/gst/codecparsers/gstmpeg4parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c index fcaa4195e0..4b0acb6b59 100644 --- a/gst-libs/gst/codecparsers/gstmpeg4parser.c +++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c @@ -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; -- 2.34.1