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 690940 - avdec_aac: produces garbled output (regression in master)
avdec_aac: produces garbled output (regression in master)
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal critical
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 691665 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-01 15:48 UTC by Sebastian Dröge (slomo)
Modified: 2013-01-26 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avauddec: Calculate buffer size base on nb_samples (1.47 KB, patch)
2013-01-25 19:56 UTC, Nicolas Dufresne (ndufresne)
committed Details | Review

Description Sebastian Dröge (slomo) 2013-01-01 15:48:39 UTC
http://www.fileplanet.com/224116/download/The-Hobbit:-An-Unexpected-Journey-HD-Trailer-720p

avdec_aac produces lots of noise and when trying hard you can understand the real audio behind the noise
Comment 1 Sebastian Dröge (slomo) 2013-01-13 18:41:18 UTC
*** Bug 691665 has been marked as a duplicate of this bug. ***
Comment 2 Tim-Philipp Müller 2013-01-13 18:47:22 UTC
PS: work-around - install the faad plugin from -bad.
Comment 3 Tim-Philipp Müller 2013-01-22 12:59:33 UTC
commit c5980dc52ac57cf0147ed269e3b2c863d7251f84
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Tue Jan 22 12:53:48 2013 +0000

    avdec_aac: disable for autoplugging until it gets fixed
    
    Currently outputs garbled audio. Use faad in the meantime.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690940
Comment 4 Nicolas Dufresne (ndufresne) 2013-01-25 00:03:11 UTC
Something I just notice, in 1.0 branch, avdec_aac can output both F32LE and S16LE, but in master it only outputs F32LE. And in fact, my test stream ouputs as S16LE with both faad and avdec_aac (1.0).
Comment 5 Nicolas Dufresne (ndufresne) 2013-01-25 17:11:27 UTC
Ok, from now on, it seems that libav only generate planar F32LE. It seems like a bug with planar audio support.
Comment 6 Nicolas Dufresne (ndufresne) 2013-01-25 19:56:04 UTC
Created attachment 234441 [details] [review]
avauddec: Calculate buffer size base on nb_samples

The buffer size was calculated base on linesize, but buffer may be
larger then required.
Comment 7 Tim-Philipp Müller 2013-01-26 12:54:39 UTC
Cool, thanks! Needed fixing for the mono case as well:


commit b7ef1faab7c3db4a156e50fb6368c6efa49c630f
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Sat Jan 26 12:35:10 2013 +0000

    Revert "avdec_aac: disable for autoplugging until it gets fixed"
    
    This reverts commit c5980dc52ac57cf0147ed269e3b2c863d7251f84.
    
    It's fixed now.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690940

commit 879cd02e26427637edaa5e31f2cfa29be481c140
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sat Jan 26 12:50:49 2013 +0000

    avauddec: fix decoding of mono audio as well
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690940

commit 76423a4ba7feccdd72937447997ca872c3bd094b
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date:   Fri Jan 25 14:40:15 2013 -0500

    avauddec: fix garbled audio decoding in some cases
    
    Calculate output buffer size based on the number of
    samples, channels and bytes per sample. The buffer
    size was calculated based on linesize, which may
    be larger than what's required.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690940