[FFmpeg-devel] [PATCH] configure option for 32-bit MPEG audio output

Diego Biurrun diego
Thu Feb 12 12:45:27 CET 2009


On Wed, Feb 11, 2009 at 07:31:17PM -0800, Mike Melanson wrote:
> Michael Niedermayer wrote:
> > On Wed, Feb 11, 2009 at 08:08:54PM +0100, Aurelien Jacobs wrote:
> >> Michael Niedermayer wrote:
> >>
> >>> On Wed, Feb 11, 2009 at 11:46:07AM +0100, Diego Biurrun wrote:
> >>>> On Tue, Feb 10, 2009 at 10:52:45PM -0800, Mike Melanson wrote:
> >>>>> I want to start doing automated testing of MPEG-1 audio conformance  
> >>>>> vectors via FATE using the officially sanctioned RMS method. To that  
> >>>>> end, FFmpeg needs to have configure-time support for 32-bit audio  
> >>>>> output. The code is already in FFmpeg but it requires setting  
> >>>>> CONFIG_AUDIO_NONSHORT manually in libavcodec/mpegaudio.h. I want to  
> >>>>> remedy that with this patch.
> >>>> Looks fine, but..
> >>>>
> >>>>> --- libavcodec/mpegaudio.h	(revision 17146)
> >>>>> +++ libavcodec/mpegaudio.h	(working copy)
> >>>>> @@ -65,7 +63,7 @@
> >>>>>  
> >>>>> -#if CONFIG_MPEGAUDIO_HP && CONFIG_AUDIO_NONSHORT
> >>>>> +#if CONFIG_MPEGAUDIO_HP && CONFIG_AUDIO_LONG
> >>>> ..why not just
> >>>>
> >>>>   if CONFIG_AUDIO_LONG
> >>>>
> >>>> ?
> 
> That's just how it was when I go there. And CONFIG_MPEGAUDIO_HP is 
> enabled by default anyway. Per the docs, disabling it sacrifices quality 
> for better speed.

The problem is that you introduce a configure option that silently
depends on another.  This is bad.  Try adding a dependency in the
"code dependency declaration section.

Diego




More information about the ffmpeg-devel mailing list