[FFmpeg-devel] Broken compile with latest libavutil/common.h

Michael Niedermayer michaelni
Sat Jan 17 17:06:06 CET 2009


On Sat, Jan 17, 2009 at 02:08:08PM +0100, Aurelien Jacobs wrote:
> On Sat, 17 Jan 2009 03:06:06 +0100
> Michael Niedermayer <michaelni at gmx.at> wrote:
> 
> > On Fri, Jan 16, 2009 at 12:53:24AM +0100, Aurelien Jacobs wrote:
> > > Michael Niedermayer wrote:
> > [...]
> > > > [...]
> > > > > 
> > > > > > +/* math */
> > > > > > +int64_t av_const ff_gcd(int64_t a, int64_t b);
> > > > > 
> > > > > The function is in mathematics.c.  Maybe mathematics.h would be a good
> > > > > place for this prototype.  
> > > > 
> > > > > Maybe we should even make that function
> > > > > public.
> > > > 
> > > > I think so too
> > > 
> > > Done in attached patch.
> > 
> > ok
> 
> Applied.
> 
> > > > > > +/**
> > > > > > + * converts fourcc string to int
> > > > > > + */
> > > > > > +static inline av_pure int ff_get_fourcc(const char *s){
> > > > > > +    assert( strlen(s)==4 );
> > > > > > +    return (s[0]) + (s[1]<<8) + (s[2]<<16) + (s[3]<<24);
> > > > > > +}
> > > > > 
> > > > > This looks a lot like AV_RL32().  
> > > > 
> > > > indeed and i wouldnt mind seeing all ff_get_fourcc replaced by it
> > > 
> > > See attached patch.
> > 
> > ok
> 
> Applied.
> 
> Now the only non-public part left in common.h is mid_pred().
> Is moving it to libavcodec/internal.h OK ?
> If not, where should it be moved ?

i dont mind it being moved to libavcodec/internal.h, but IIRC there was
some uglyness in the patch ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090117/a137bde0/attachment.pgp>



More information about the ffmpeg-devel mailing list