pcapparse: Fix handling of TCP payload length
authorOleksandrKvl <oleksandrdvl@gmail.com>
Mon, 24 Jun 2019 15:39:35 +0000 (18:39 +0300)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 24 Jun 2019 15:55:38 +0000 (15:55 +0000)
commit130d096608723dcee48b23f92081687c37c4ff34
treed466e04196e7a5f06ed486eaf3c07c2b6e090a20
parent934d0fcdd3ad61ad990ee651bf7bde4e1bbbfa2e
pcapparse: Fix handling of TCP payload length

The length of the  TCP payload is the IP plus TCP header length
subtracted from the IP datagram length specified in the IP header.
Prior to this, the size was calculated incorrectly, considering
all data after TCP header as a payload till the end of a packet.

Fixes #995
gst/pcapparse/gstpcapparse.c