After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656734 - [aacparse] Assumes 1024 samples per frame
[aacparse] Assumes 1024 samples per frame
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.13
Other Linux
: Normal normal
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-17 10:44 UTC by Sebastian Dröge (slomo)
Modified: 2011-09-07 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
aacparse: parse codec_data to determine samples per frame (3.64 KB, patch)
2011-09-06 14:03 UTC, Mark Nauwelaerts
committed Details | Review

Description Sebastian Dröge (slomo) 2011-08-17 10:44:33 UTC
aacparse currently assumes 1024 samples per frame. Depending on the profile this can be wrong.

AFAIK there can be 1024 or 960 samples with LC, 2048 samples with HE-AAC and 480 or 512 LD. No idea about the other profiles.
Comment 1 Mark Nauwelaerts 2011-09-06 14:03:35 UTC
Created attachment 195785 [details] [review]
aacparse: parse codec_data to determine samples per frame

There is some info in standard codec_data that allows for 960 or 1024 samples, and attached patch parses and then uses that bit of info.

However, AFAIK, in case of SBR (HE-AAC), there can be 2048 decoded samples, but those are 1024 samples upsampled along with a doubled sample rate, so that comes down to the same frame duration (which is all aacparse is doing here).

Don't know about the other cases though (specs or any way to bitpick those).
Comment 2 Sebastian Dröge (slomo) 2011-09-07 08:33:48 UTC
Looks good and you're right with HE-AAC. No idea about the LD (low delay) profile though, the only information I found about it was in the OpenMAX specification but I didn't search very hard and we don't support it yet anyway :)
Comment 3 Mark Nauwelaerts 2011-09-07 09:23:23 UTC
commit 625e7a6143a0eefa2cf79550b6e66c44e4c19bf0
Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date:   Tue Sep 6 15:59:49 2011 +0200

    aacparse: parse codec_data to determine number of samples per frame
    
    Fixes #656734.