summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux/gstmpegtsdemux.h
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2009-03-03 18:28:10 +0000
committerZaheer Merali <zaheerabbas@merali.org>2009-03-03 18:28:10 +0000
commit84860befdf57c44b0b645eaa9a81cc98a20294fd (patch)
tree4f8ac646f68593927fbf7322ed746d6deca22c39 /gst/mpegdemux/gstmpegtsdemux.h
parentb02708a2f6a653a0873fe821fe9935ecc3026098 (diff)
downloadgst-plugins-bad-84860befdf57c44b0b645eaa9a81cc98a20294fd.tar.gz
gst-plugins-bad-84860befdf57c44b0b645eaa9a81cc98a20294fd.tar.bz2
gst-plugins-bad-84860befdf57c44b0b645eaa9a81cc98a20294fd.zip
mpegtsdemux: dynamically adjust the sync LUT table
Make the sync LUT table adjusted dynamically according to the size of scanned data. Fixes demuxing buffers of any size.
Diffstat (limited to 'gst/mpegdemux/gstmpegtsdemux.h')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.h b/gst/mpegdemux/gstmpegtsdemux.h
index ff876b7d..8a4ca3d2 100644
--- a/gst/mpegdemux/gstmpegtsdemux.h
+++ b/gst/mpegdemux/gstmpegtsdemux.h
@@ -60,8 +60,6 @@ G_BEGIN_DECLS
#define MPEGTS_NORMAL_TS_PACKETSIZE 188
#define MPEGTS_M2TS_TS_PACKETSIZE 192
-#define LENGTH_SYNC_LUT 256
-
#define IS_MPEGTS_SYNC(data) (((data)[0] == 0x47) && \
(((data)[1] & 0x80) == 0x00) && \
(((data)[3] & 0x10) == 0x10))
@@ -182,6 +180,7 @@ struct _GstMpegTSDemux {
GstPad * sinkpad;
GstAdapter * adapter;
guint8 ** sync_lut;
+ guint sync_lut_len;
/* current PMT PID */
guint16 current_PMT;