[FFmpeg-cvslog] r23647 - in trunk: Changelog libavcodec/Makefile libavcodec/aacdec.c libavcodec/aacsbr.c libavcodec/avcodec.h libavcodec/mpeg4audio.c libavcodec/ps.c libavcodec/ps.h libavcodec/ps_tablegen.c libavc...

Måns Rullgård mans
Sun Jun 20 14:52:36 CEST 2010


Michael Niedermayer <michaelni at gmx.at> writes:

> On Sun, Jun 20, 2010 at 08:27:17AM +0200, Reimar D?ffinger wrote:
>> On Sun, Jun 20, 2010 at 04:06:06AM +0200, Michael Niedermayer wrote:
>> > > +#if CONFIG_HARDCODED_TABLES
>> > > +#define ps_tableinit()
>> > > +#include "libavcodec/ps_tables.h"
>> > > +#else
>> > > +#include "../libavutil/common.h"
>> > > +#ifndef M_SQRT1_2
>> > > +#define M_SQRT1_2      0.70710678118654752440  /* 1/sqrt(2) */
>> > > +#endif
>> > > +#ifndef M_PI
>> > > +#define M_PI           3.14159265358979323846  /* pi */
>> > > +#endif
>> > > +#ifndef M_SQRT2
>> > > +#define M_SQRT2        1.41421356237309504880  /* sqrt(2) */
>> > 
>> > these constants should be already in some libavutil header
>> 
>> Yes, but that header can't be used for host compilation.
>
> why not?

It used to (indirectly) include config.h but that seems to have
changed.  Nevertheless, moving the constants to a separate header as
suggested makes sense.  They have nothing to do with the rest of that
file.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list