aacparse: Avoid over-skipping when checking LOAS config
authorEdward Hervey <edward@centricular.com>
Mon, 30 Nov 2015 07:42:35 +0000 (08:42 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 2 Dec 2015 13:12:55 +0000 (14:12 +0100)
commit6888871d2acf3d4b6f219685602464b56f87cea6
treee7d53048d0a7ce7fe2a74826092d55cca749dee4
parentf173bd7d16a491bf13d08635b5170a8a6fc01306
aacparse: Avoid over-skipping when checking LOAS config

There might be multiple LOAS config in a row in a full frame. The first
one might be a multi-layer config (which we can't properly parse yet)...
but then followed by a valid (single-layer) one.

The code was previously skipping whole frames (instead of just the LOAS
config we failed to read) resulting in multiple frames (seen up to 6s in
some situation) being dropped before finally getting the configuration.

https://bugzilla.gnome.org/show_bug.cgi?id=758826
gst/audioparsers/gstaacparse.c