rtpac3depay2: fix handling of non-fragmented payloads
rtpac3depay2: fix handling of non-fragmented payloads
The frames of a non-fragmented payload would contain
an extra two bytes before the frame sync and then
missing two bytes at the end which which would cause
decoding errors on the last block and/or frame crc
check failures.
This happened because we didn't take into account
the 2-byte packet payload header when creating output
sub-buffers, as the offsets we were using were in
relation to the payload data after the headers.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/645
rtp: tests: add run_test_pipeline variants with data validation
So we can actually check the content of depayloaded buffers too.
rtp: ac3: validate depayloaded AC-3 data in unit tests
Check for valid frame header.