pesparse: Be a bit more permissive with PTS/DTS parsing
authorEdward Hervey <edward.hervey@collabora.co.uk>
Sat, 26 May 2012 12:08:41 +0000 (14:08 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Sat, 26 May 2012 13:54:41 +0000 (15:54 +0200)
commitb6732a27d34099d50f97209877e20b1f924c3a06
treea1a9c8b981987f8822e4654e35d9d25c2ba0eb6f
parent6ea05840a4ede23f1919bbcaea825c7cdb9a360b
pesparse: Be a bit more permissive with PTS/DTS parsing

According to the specifications a PTS_DTS_flags value of 0x01 is forbidden.
... but there are some rare files out there that do that.

Instead of erroring out, let's warn, carry on parsing accordingly.

If the packet is really corrupted there are enough checks afterward to
detect that.
gst/mpegtsdemux/pesparse.c