mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
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:
parent
ac07f8577b
commit
c28acaa3c5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue