GNOME Bugzilla – Bug 751393
aacparse: LOAS config never retrieved
Last modified: 2015-09-25 08:04:06 UTC
Created attachment 305929 [details] [review] Patch fixing the issue I'm using aacparse on some live TV stream decoding pipeline. I encountered some AAC sample for which the LOAS configuration is never retrieved. For each LOAS frame, "use previous config" bit is set, the whole frame size is skipped and we never have any configuration. It's not correct for the detect stream function to return TRUE if no previous config is found. Indeed, returning FALSE on detect stream function when no previous config has been retrieved fixed this issue, as the handle frame function returned with skip_size = 1. And parsing from next byte leads to retrieving some valid configuration some steps further. This should be cause by starting parsing from any position in frame. I provided a patch to fix this and some AAC sample file to reproduce it.
Created attachment 305933 [details] AAC sample file gdppayed
This issue has been resolved by last patch submitted on bug : https://bugzilla.gnome.org/show_bug.cgi?id=751386
Thanks for testing and letting us know.