[gst-cvs] gst-plugins-bad: mpegtsdemux, mpegtsparse: max section length is 4093 not 1021.

Zaheer Abbas Merali zaheer at kemper.freedesktop.org
Tue Sep 15 06:49:18 PDT 2009


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

Author: Zaheer Abbas Merali <zaheerabbas at merali.org>
Date:   Tue Aug 18 13:35:59 2009 +0200

mpegtsdemux, mpegtsparse: max section length is 4093 not 1021.

---

 gst/mpegdemux/gstsectionfilter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/mpegdemux/gstsectionfilter.c b/gst/mpegdemux/gstsectionfilter.c
index e06d762..5c4b2a4 100644
--- a/gst/mpegdemux/gstsectionfilter.c
+++ b/gst/mpegdemux/gstsectionfilter.c
@@ -135,7 +135,7 @@ gst_section_filter_push (GstSectionFilter * filter, gboolean pusi,      /* deter
     }
     filter->section_length = GST_READ_UINT16_BE (data + 1);
     filter->section_length &= 0x0fff;
-    if (filter->section_length > 1021) {
+    if (filter->section_length > 4093) {
       GST_DEBUG ("section length too big");
       goto failure;
     }





More information about the Gstreamer-commits mailing list