gst-plugins-bad: codecparsers: mpeg4: fix parsing when recursively skipping user data

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Jan 9 06:04:07 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: 360cbaa46c4949a8ce3c53a70147d297c089d3de
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=360cbaa46c4949a8ce3c53a70147d297c089d3de

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Jan  9 14:56:29 2012 +0100

codecparsers: mpeg4: fix parsing when recursively skipping user data

---

 gst-libs/gst/codecparsers/gstmpeg4parser.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c
index fcaa419..4b0acb6 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;



More information about the gstreamer-commits mailing list