Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134385 - Garbled output from faad2 on amd64 [patch]
Summary: Garbled output from faad2 on amd64 [patch]
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-05-26 01:03 UTC by Ben Laughton
Modified: 2006-10-01 22:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New version of 040_all_64bit.patch for media-libs/faad2 (040_all_64bit.patch,9.58 KB, patch)
2006-05-26 01:04 UTC, Ben Laughton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Laughton 2006-05-26 01:03:27 UTC
Output from faad2 is always garbled/distorted on my amd64 system.

I first noticed this when playing HD trailers from the Apple Movie Trailers site (http://www.apple.com/trailers/) with vlc.

The problem also occurs if I use faad2 to decode an mp4 file to wav, then play it with a simple player like alsaplayer or aplay.

This has occurred with all recent versions of faad2, including faad2-2.0-r12, which is the latest at the time of writing.

The problem is due to a mistake in 040_all_64bit.patch. The defSampleRate field of the faacDecConfiguration structure has been changed from an unsigned long to a uint8_t, whereas it should be a uint32_t. Will attach a new version of the patch.
Comment 1 Ben Laughton 2006-05-26 01:04:43 UTC
Created attachment 87537 [details, diff]
New version of 040_all_64bit.patch for media-libs/faad2
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-09 06:36:06 UTC
patch is still not corrected. herd, please do something, it's a oneliner fix.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:31:52 UTC
VLC now plays AAC fine, as it passes through FFmpeg to do so.
FAAD problems are too wide and spread to fix them without hurting anything else. The suggestion is to use FFmpeg when possible, to reduce it to a single point of failure.