[FFmpeg-devel] Cleanup libswscale and reimplement GPL code under LGPL

Diego Biurrun diego
Tue Apr 8 18:46:58 CEST 2008


On Tue, Apr 08, 2008 at 02:45:27AM +0200, Michael Niedermayer wrote:
> On Mon, Apr 07, 2008 at 11:28:49PM +0200, Diego Biurrun wrote:
> > On Mon, Apr 07, 2008 at 11:44:26AM +0000, Ramiro Polla wrote:
> > > 
> > > I've looked at the license headers and a few svn annotates from GPL
> > > files. What parts of the code is left in GPL?
> > 
> > cs_test.c
> > swscale_example.c
> > 
> > Michael, would you relicense these test programs of yours?  Nobody else
> > seems to have made copyrightable changes to these files.
> 
> What would be the point? These arent linked or used by libav*,

It would reduce license confusion in the libswscale subdirectory.  Plus,
the example code is supposedly something that people should be able to
copy and paste freely into their code.  libavcodec/apiexample.c is LGPL,
output_example.c has an X11-style permissive license.  I thought that
this was the purpose of these files as well.  They look rather trivial
in any case.

> its the same as with fdctref.

The problem with that file is that it is basically unredistributable.

> > swscale.c
> > swscale_template.c
> > rgb2rgb.c
> > rgb2rgb_template.c
> > 
> > These files are GPL, but carry the following exception:
> > 
> >  * the C code (not assembly, mmx, ...) of this file can be used
> >  * under the LGPL license too
> > 
> > The cleanest solution would likely be to split these files into ASM and
> > C parts.  Then the ASM parts can be compiled conditional to CONFIG_GPL.
> 
> The asm code should be split out yes.

I'm thinking that we could manage to find enough tasks to fill the
summer with all of this :)

Diego




More information about the ffmpeg-devel mailing list