[FFmpeg-devel] [PATCH] Use LIBAVCODEC_BUILD rather than the deprecated avcodec_build() in cmdutils.c:show_version()

Stefano Sabatini stefano.sabatini-lala
Sun Jul 13 23:21:35 CEST 2008


On date Sunday 2008-07-13 22:57:15 +0200, Michael Niedermayer encoded:
> On Sun, Jul 13, 2008 at 07:08:44PM +0200, Stefano Sabatini wrote:
> > avcodec_build() has been deprecated, LIBAV*_BUILD also look pointless
> > so it seems better to directly use LIBAV*_VERSION_INT instead.
> > 
> > Regards.
> > -- 
> > FFmpeg = Faboulous and Fostering Multimedia Pitiless Explosive God
> 
> > Index: cmdutils.c
> > ===================================================================
> > --- cmdutils.c	(revision 14208)
> > +++ cmdutils.c	(working copy)
> > @@ -223,7 +223,7 @@
> >             "libavcodec  %d\n"
> >             "libavformat %d\n"
> >             "libavdevice %d\n",
> > -           LIBAVUTIL_BUILD, avcodec_build(), LIBAVFORMAT_BUILD, LIBAVDEVICE_BUILD);
> > +           LIBAVUTIL_VERSION_INT, LIBAVCODEC_VERSION_INT, LIBAVFORMAT_VERSION_INT, LIBAVDEVICE_VERSION_INT);
> 
> not ok
> avcodec_build() is not the same as LIBAVCODEC_VERSION_INT

That's right, new patch attached.

BTW what's the plan for LIBAV*_BUILD, do you want to keep them or
deprecate them in favour of LIBAV*_VERSION_INT?

Regards.
-- 
FFmpeg = Fantastic and Faboulous Mega Power Entertaining Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-libavcodec-build.patch
Type: text/x-diff
Size: 463 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080713/01e39e95/attachment.patch>



More information about the ffmpeg-devel mailing list