FFmpeg/libavformat
Marton Balint 9420f7e095 avformat/mpegts: fix max_packet_size in mpegts payload parsing
The maximum allowed useful PES payload data was set to PES_packet_length, but
it is in fact smaller by the length of the PES header.

This changes how corrupt streams are packetized:
- If PES header length is bigger than PES_packet_length then the PES packet
  payload will be handled as an unbound packet
- PES packets with payload across multiple MPEGTS packets will always be
  splitted if with the next chunk of data the payload should exceed
  PES_packet_length, previously a PES_header_length amount of excess was
  allowed.

Fixes ticket #9355.

Signed-off-by: Marton Balint <cus@passwd.hu>
2021-10-10 16:54:15 +02:00
..
2021-04-27 11:48:06 -03:00
2021-06-10 16:51:44 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-22 15:02:30 +02:00
2021-03-31 22:01:36 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-02-02 23:53:29 +01:00
2021-04-27 11:48:06 -03:00
2020-10-06 00:01:35 +08:00
2020-10-06 00:01:27 +08:00
2021-04-27 11:48:06 -03:00
2021-07-31 22:08:19 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-09-19 20:12:32 +02:00
2021-04-27 11:48:06 -03:00
2021-09-26 08:51:58 +02:00
2021-04-27 11:48:06 -03:00
2021-10-03 20:56:12 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-08 16:03:17 +02:00
2021-04-27 11:48:06 -03:00
2021-07-22 15:02:30 +02:00
2021-07-20 11:20:04 +05:30
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-08-06 22:49:26 +02:00
2021-07-22 15:02:30 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2020-12-21 01:27:33 -05:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-10-03 20:56:12 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-06-18 18:58:25 +02:00
2021-09-07 18:07:11 +10:00
2021-09-24 00:14:01 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-09-19 04:40:13 +02:00
2021-07-05 12:49:55 -04:00
2021-10-07 11:52:10 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-10-03 20:56:12 +02:00
2021-04-27 11:48:06 -03:00
2021-10-03 20:56:12 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-08 16:03:18 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-10-09 11:42:16 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00