aacparse: Add conversion support from/to ADIF/ADTS/RAW/LOAS stream-formats
Submitted by Danilo Freire
Link to original bug (#615740)
Description
The FAAD plugin do not searches for LATM/LOAS format in the AAC stream.
The chain function searches for the sync word (line 1061), but only for the ADTS syncword (gst_faad_sync method).
My suggestion is:
Adding a new parameter in the src caps of the plugin:
transport{adts,latm}
-
if the transport parameted is set, the plugin must looking for the correct syncword (latm or adts syncword).
-
if the transport parameter is not set, the plugin look for:
a) First the adts syncword for 17000 Bytes (thats a guess :)
b) If no ADTS syncword was found, looking for LATM syncword.
*) This approach is suggested in cases of continuous streams, such one that come from a live source, like a dvbsrc->mpegdemux for example.