Fix scam_capmt sockets.
fix ts_packet_get_payload_offset
Merge pull request #39 from ostryck/master

coverity fixes