[FFmpeg-devel] avcodec_version() and friends

Michael Niedermayer michaelni
Fri Jul 11 15:18:30 CEST 2008


On Fri, Jul 11, 2008 at 09:15:47AM +0100, M?ns Rullg?rd wrote:
> Andreas ?man <andreas at lonelycoder.com> writes:
> 
> > Hi
> >
> > When helping somebody on irc who has screwed up his includepaths
> > i realized all libs expect lavc lacks functions equivalent to
> > avcodec_version().
> >
> > Attached patch add such functions for lavf. If this is wanted
> > i can fix for the other libs as well.
> >
> > While at it I fixed doxygen comments for the lavc ones.
> >
> > Index: libavcodec/avcodec.h
> > ===================================================================
> > --- libavcodec/avcodec.h	(revision 14161)
> > +++ libavcodec/avcodec.h	(working copy)
> > @@ -2514,9 +2514,16 @@
> >  #endif
> >  AVCodec *av_codec_next(AVCodec *c);
> >  
> > -/* returns LIBAVCODEC_VERSION_INT constant */
> > +/**
> > + * Get lavc version.
> > + * @return LIBAVCODEC_VERSION_INT constant 
> > + */
> >  unsigned avcodec_version(void);
> > -/* returns LIBAVCODEC_BUILD constant */
> > +
> > +/**
> > + * Get lavc build id.
> > + * @return LIBAVCODEC_BUILD constant 
> > + */
> >  unsigned avcodec_build(void);
> 
> LIBAVCODEC_BUILD and LIBAVCODEC_VERSION_INT are the same number.  I
> suggest we deprecate avcodec_build().

agree

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

No great genius has ever existed without some touch of madness. -- 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-devel/attachments/20080711/1ce7539a/attachment.pgp>



More information about the ffmpeg-devel mailing list