mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
mpegtspacketizer: Skip packets with corrupted length
This is similar to what we do for packets with payload
This commit is contained in:
parent
5e50cd507c
commit
70d83b323b
1 changed files with 5 additions and 0 deletions
|
@ -315,6 +315,11 @@ mpegts_packetizer_parse_adaptation_field_control (MpegTSPacketizer2 *
|
|||
|
||||
if ((packet->scram_afc_cc & 0x30) == 0x20) {
|
||||
/* no payload, adaptation field of 183 bytes */
|
||||
if (length > 183) {
|
||||
GST_WARNING ("PID %d afc == 0x%02x and length %d > 183",
|
||||
packet->pid, packet->scram_afc_cc & 0x30, length);
|
||||
return FALSE;
|
||||
}
|
||||
if (length != 183) {
|
||||
GST_WARNING ("PID %d afc == 0x%02x and length %d != 183",
|
||||
packet->pid, packet->scram_afc_cc & 0x30, length);
|
||||
|
|
Loading…
Reference in a new issue