[MPlayer-dev-eng] [PATCH] ad_faad.c waveformatex fix

Diego Biurrun diego at biurrun.de
Tue May 11 15:54:30 CEST 2004


Reza Jelveh writes:
> this patch fixes the init if theres a waveformatex header like in nsv.
> ill add adif and adts header parsing tommorow probably.

Nice!  This fixes the following sample

http://www.mplayerhq.hu/~diego/Gundam_SEED_01%5bv2%5d.DVD(AAC)%5bKAA%5d%5b9BE09D33%5d_small.avi

that has AAC audio that is not 128kbit.

Sound works after adding

  format=0xFF

to the faad section of codecs.conf.

Before the patch:

==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 16000->88200 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================

Audio is played slower than it should be.  After:

==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 18451->192000 (147.6 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================

Audio plays fine.

Diego




More information about the MPlayer-dev-eng mailing list