avtp: Add fragmentation feature to CVF payloader
authorEderson de Souza <ederson.desouza@intel.com>
Wed, 6 Mar 2019 02:09:13 +0000 (18:09 -0800)
committerEderson de Souza <ederson.desouza@intel.com>
Wed, 3 Jul 2019 16:59:35 +0000 (09:59 -0700)
commitb056297eead41b77a1d47e223e6bab2f1e6be6b2
tree1da7498c9140e802065a7f60b615c4b2aba4619f
parent3b4f3a0b3f2985681f86572607f38173407f8a1f
avtp: Add fragmentation feature to CVF payloader

Based on `mtu` property, the CVF payloader is now capable of properly
fragmenting H.264 NAL units that are bigger than MTU in several AVTP
packets.

AVTP spec defines two methods for fragmenting H.264 packets, but this
patch only generates non-interleaved FU-A fragments.

Usually, only the last NAL unit from a group of NAL units in a single
buffer will be big enough to be fragmented. Nevertheless, only the last
AVTP packet sent for a group of NAL units will have the M bit set (this
means that the AVTP packet for the last fragment will only have the M
bit set if there's no more NAL units in the group).
ext/avtp/gstavtpcvfpay.c