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 :(
This commit is contained in:
Edward Hervey 2013-08-01 10:58:23 +02:00
parent ac07f8577b
commit c28acaa3c5

View file

@ -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;