opdenkamp/xbmc-pvr-addons — pull request #106 by FernetMenta (2012-12-09 18:18:59+00:00)
Title: Vnsi fixes

- fix AAC LATM
this was completely borked. I adopted a patch from tvheadend. Now it uses ffmpeg codec AAC_LATM. Re-encapsulating audio frames into ADTS packets is dropped.
Interesting is that ffmpeg won't start if sample rate and channels are set by the backend.

- add support for AAC ADTS

- keep pat/pmt triggered stream changes in sync with buffer. The pat filter gets notified when the device receives the information but the packets are buffered. Reconfiguring the demuxers at this time causes many packets to get dropped. In particular this gets important for timeshift when the buffer will get much bigger.
Now I generate the pat/pmt info into the buffer and parse it out later. This way I can even load recordings into the buffer (this helped fixing the audio issues as I don't have access to channels bradcasting LATM)