Allwinner’s New Media Codec Library (CedarX) May Infringe on Open Source Licenses and Copyrights

Allwinner has had to good idea to open allwinner-zh github account last September in order to release source code, binary libraries, and documentation for these ARM processors. Yesterday, the company released a new version of their closed source CedarX library used to decode and encode video streams. But Luc Verhaegen (libv), known for his reverse-engineering work on ARM Mali-400 (lima driver) and now Mali-Txxx GPU (Tamil driver), analyzed the binary and claimed  the library is not compliant with LGPL licenses, and may also infringe on On2 copyrights.

Allwinner_GPL_LGPLLuc wrote his concerns on sunxi-linux mailing list, and Allwinner promised to look into it.

Two libraries are involved:

  • ffmpeg which includes both LGPL and GPL licenses, but the contention seems to be about the LGPL part, since only optional features are GPL’ed in ffmpeg. It’s perfectly fine to include LGPL libraries into your binaries, as long as you don’t modify the open source libraries, but if you do, the source code modifications must be released under an LGPL license.
  • libvp62 an open source implementation of On2 VP6 codec released in 2006 that was taken down due to copyright infringements since it was allegedly “anti-compiled from Java”

I can imagine the timeline for the latter happened that way:

  1. Management to customer: “OK, we’ll get you a VP6 demo next week”
  2. Management to engineering team: “I need VP6 for next week to show to our most important customer”
  3. Engineering team: Open jaw first, then look for code on Baidu, and find it on pudn (Sight of relief)
  4. VP6 demo is implemented and successfully demo’ed to customer
  5. Management, customer and engineers are all happy! Mission accomplished.

On2 is now owned by Google, so Allwinner could have a problem or two if the copyright infringement is confirmed, and Google takes action. Luckily VP6 video decoding is also supported by ffmpeg, so they may be able to sort this out.

It’s also interesting to read the full thread on sunxi-linux mailing, as people explains what kind of issues they had with closed source project, including a canceled project using Allwinner A20, and potential security issues.

Via Phoronix

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

8 Replies to “Allwinner’s New Media Codec Library (CedarX) May Infringe on Open Source Licenses and Copyrights”

  1. “It’s perfectly fine to include LGPL libraries into your binaries, as long as you don’t modify the open source libraries, but if you do, the source code must be released under an LGPL license”

    That is not exactly how the LGPL works. Point 4 of the LGPL2.1 has this sentence:

    4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.

    So if you use it then you must offer distribution for the source somehow. It does not matter if changed the source or not.

  2. @Benjamin Larsson
    I understand that section as you must release the source code for the LGPL code. But you can keep the proprietary source code that does not use LGPL code. So you can use the original ffmpeg LGPL libraries and write a proprietary app/lib based on these libraries without releasing the source code of your app, since it’s not LGPL. It’s apparently little easier to handle when the app/lib is linked dynamically, instead of statically.

  3. @cnxsoft
    Chinese and their IP views… Well, they are just acting how all commercial entities would like to work, but are hindered by western world’s views… The whole system is broken, the GPL universe should try to convince enough entities to isolate themseves from the dinosaurs and their views to become self-suffient without anything from the dinosaurs’ side, money included.

  4. @anon
    Finally, it might not be as bad as it first looked, but still far from ideal -> http://lists.phcomp.co.uk/pipermail/arm-netbook/2015-March/010447.html

    I can explain the whole process in a whole detail, because I was directly
    involved in the process of this decision and I can tell where this is going
    right now:
    The rename was done to fix the LGPL violations by adding a wrapper for the
    GPLed libraries which will be LGPLed and published.
    This way we have Binary<->LGPLed open source code<->GPL libraries
    Next step will be to drop the whole “we ship our own SDK”-thing and move over
    to stream our code into the existing open source alternatives.
    But until the FOSS libraries have all the functionality from the shipped SDK
    we can not just stop supporting our customers in China.
    Also we can not suddenly make it open source for the following reasons:
    * Some engineers and managers do not fully comply with the GPLing
    of their code yet.
    * The code has awful coding style and my armcc refuses to compile at least 2/3
    of the code because of the Chinese comments.
    * Also some of the engineers obviously have never heard the term “revision
    control” which makes it even harder to locate the actual version of the
    source code from which the binary was compiled from… -.-‘

  5. @cnxsoft
    Interesting thread… The “wrapper” idea is actually not legal even with LGPL code, let alone the GPL parts (there are numerous attempts of doing just that, just in the end getting sued for them), but they can always try that and hope people let them be… 😉

    Just history repeating.

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC