[FFmpeg-cvslog] r14412 - trunk/libavcodec/avcodec.h

Michael Niedermayer michaelni
Sat Jul 26 15:33:43 CEST 2008


On Sat, Jul 26, 2008 at 02:46:14PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> On Saturday, 26 July 2008 at 14:20, pross at xvid.org wrote:
> > On Sat, Jul 26, 2008 at 01:57:22PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> > > On Saturday, 26 July 2008 at 10:48, pross wrote:
> > > > Author: pross
> > > > Date: Sat Jul 26 10:48:26 2008
> > > > New Revision: 14412
> > > > 
> > > > Log:
> > > > add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.
> > > > 
> > > > Modified:
> > > >    trunk/libavcodec/avcodec.h
> > > > 
> > > > Modified: trunk/libavcodec/avcodec.h
> > > > ==============================================================================
> > > > --- trunk/libavcodec/avcodec.h	(original)
> > > > +++ trunk/libavcodec/avcodec.h	Sat Jul 26 10:48:26 2008
> > > > @@ -347,6 +347,7 @@ enum SampleFormat {
> > > >      SAMPLE_FMT_S24,             ///< signed 24 bits
> > > >      SAMPLE_FMT_S32,             ///< signed 32 bits
> > > >      SAMPLE_FMT_FLT,             ///< float
> > > > +    SAMPLE_FMT_NB               ///< Number of sample formats. DO NOT USE if dynamically linking to libavcodec
> > > 
> > > Huh? Why not?
> > 
> > Because your user application will need to be recompiled whenever we add
> > another format. These rules also apply to PIXEL_FMT_NB.
> 
> Wouldn't that be ABI breakage?

no, why?

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

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- 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-cvslog/attachments/20080726/0d0b0dfb/attachment.pgp>



More information about the ffmpeg-cvslog mailing list