[FFmpeg-devel] [PATCH] Move ff_reverse in libavcodec to av_reverse in libavutil

Michael Niedermayer michaelni
Mon Nov 9 02:43:12 CET 2009


On Sun, Nov 08, 2009 at 09:38:38AM +0100, Francesco Lavra wrote:
> On Sat, 2009-11-07 at 23:49 +0100, Michael Niedermayer wrote:
> > On Sat, Nov 07, 2009 at 09:44:21PM +0100, Reimar D?ffinger wrote:
> > > On Sat, Nov 07, 2009 at 09:21:56PM +0100, Michael Niedermayer wrote:
> > > > On Sat, Nov 07, 2009 at 08:48:49PM +0100, Reimar D?ffinger wrote:
> > > > > Sorry if this is a bit confusing, this is basically carried over
> > > > > from a MPlayer discussion I think.
> > > > > The main question I'd say is whether ff_reverse should be moved to
> > > > > libavutil and independently from that whether it should be made part
> > > > > of the public API as av_reverse.
> > > > 
> > > > what advantage is there in moving it into libavutil?
> > > 
> > > That MPlayer makes no effort to compiler without libavutil while
> > > it was once supposed to work without libavcodec.
> > > Not that I consider that really relevant, I suggested libavutil
> > > without really thinking about it.
> > 
> > Well, i dont mind moving it into lavutil if you think thats a good
> > idea
> > 
> > 
> > > 
> > > > about making it public, if some projects wants to use it iam fine with
> > > > that of course.
> > > 
> > > So renaming ff_reverse to av_reverse and put extern declaration in
> > > avcodec.h? Or some other header?
> > 
> > yes
> 
> The attached patch renames ff_reverse to av_reverse, and moves its
> definition from libavcodec/utils.c to libavutil/mathematics.c and its
> extern declaration from libavcodec/get_bits.h to libavutil/common.h
> 

>  libavcodec/ac3enc.c     |    4 ++--
>  libavcodec/asv1.c       |   10 +++++-----
>  libavcodec/get_bits.h   |    2 --
>  libavcodec/indeo2.c     |    3 ++-
>  libavcodec/pcm.c        |   10 +++++-----
>  libavcodec/tiff.c       |    3 ++-
>  libavcodec/utils.c      |   19 -------------------
>  libavcodec/wnv1.c       |    5 +++--
>  libavutil/common.h      |    2 ++
>  libavutil/mathematics.c |   19 +++++++++++++++++++
>  10 files changed, 40 insertions(+), 37 deletions(-)
> fb77d8187059bf0400e5ce4182a206c8e1cb91b6  ff_reverse.patch

ok if tested

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

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- 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/20091109/6d49437b/attachment.pgp>



More information about the ffmpeg-devel mailing list