diff options
author | Edward Hervey <edward@collabora.com> | 2013-08-01 10:58:23 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2013-08-02 10:41:25 +0200 |
commit | c28acaa3c570fed5e2cd8bc140494ee311578518 (patch) | |
tree | 2d2538a3fc35800e9216c9d93fd63834cf80183d | |
parent | ac07f8577bd63a77848ed6339810a72f56663326 (diff) |
mpegtspacketizer: Fix PCR LUT table
We were only resetting the first 512 values of the lookup table instead
of the whole 8192.
This resulted in any PCR PID over 0x0200 ... ending up taking the first PCR
table around :(
-rw-r--r-- | gst/mpegtsdemux/mpegtspacketizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c index 8ed14c05f..449547ae6 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.c +++ b/gst/mpegtsdemux/mpegtspacketizer.c @@ -168,7 +168,7 @@ flush_observations (MpegTSPacketizer2 * packetizer) g_free (priv->observations[i]); priv->observations[i] = NULL; } - memset (priv->pcrtablelut, 0xff, 0x200); + memset (priv->pcrtablelut, 0xff, 0x2000); priv->lastobsid = 0; } @@ -306,7 +306,7 @@ mpegts_packetizer_init (MpegTSPacketizer2 * packetizer) priv->mapped_size = 0; priv->offset = 0; - memset (priv->pcrtablelut, 0xff, 0x200); + memset (priv->pcrtablelut, 0xff, 0x2000); memset (priv->observations, 0x0, sizeof (priv->observations)); priv->lastobsid = 0; |