rtph264pay: Support STAP-A bundling
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 3 Jul 2018 17:39:25 +0000 (19:39 +0200)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Wed, 3 Jul 2019 19:05:29 +0000 (19:05 +0000)
commitb46dab13d2a67cf49e34d5f01a5a192de7d98c0b
tree8ab96d0b14d584eebdf35b6ce284024bbd7581b8
parent66a3db20830fac2680821a4fcd2a62eda314f5b3
rtph264pay: Support STAP-A bundling

Add a new property "do-aggregate"* to the H.264 RTP payloader which
enables STAP-A aggregation as per [RFC-6184][1]. With aggregation enabled,
packets are bundled instead of sent immediately, up until the MTU size.
Bundles also end at access unit boundaries or when packets have to be
fragmented.

*: The property-name is kept generic since it might apply more widely,
   e.g. STAP-B or MTAP.
[1]: https://tools.ietf.org/html/rfc6184#section-5.7

Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/434
gst/rtp/gstrtph264pay.c
gst/rtp/gstrtph264pay.h
tests/check/elements/rtp-payloading.c
tests/check/elements/rtph264.c