aacparse: streamline and improve AudioSpecificConfig parsing
authorEdward Hervey <edward@centricular.com>
Thu, 6 Apr 2017 10:01:00 +0000 (12:01 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 6 Apr 2017 10:04:46 +0000 (12:04 +0200)
commit9a066e548ddd6da12de29bd8cfe2f084767c2e82
tree381972aa48bc7229904191a04dbbb9dd245dbee3
parent3342d86d9b92cf60c419b728d10944968d77ecac
aacparse: streamline and improve AudioSpecificConfig parsing

AudioSpecifigConfig is used in a variety of AAC streams but was
being parsed differently. Instead, make everyone use the same parsing.

* Remove unused 'bits' field (it was always set to 0 if present)
* Add proper GAConfig parsing (to know the  number of samples per frame
  if present).

Fixes wrong rate/channels configuration in streams coming from qtdemux

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