From 84860befdf57c44b0b645eaa9a81cc98a20294fd Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 3 Mar 2009 18:28:10 +0000 Subject: 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. --- gst/mpegdemux/gstmpegtsdemux.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gst/mpegdemux/gstmpegtsdemux.h') 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; -- cgit v1.2.1