From 6ba14eb2674e53fa30c280be447eef3a209a0365 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 16 Jun 2017 19:35:24 +0200 Subject: [PATCH] mp_image: change license to LGPL (almost) Since michael was somewhat involved in it, wait with the actual license change until the core is relicensed. Thus mark it as "Almost LGPL.". The worrisome part about mp_image.c is that it was created by cehoyos (which disagreed with LGPL) in commit f2dee327b2797. But it turns out it was a patch by someone else (who agreed with LGPL). For some reason, the patch was actually slightly modified by cehoyos for no reason (messed with the include statements), so we mess them back, just to be sure. Other than this, there were some commits that added support for new IMGFMTs over the years. Some of these were by people we didn't ask or we didn't get permission from. But since the original mp_image code was replaced by more generic code using FFmpeg pixdesc, none of these changes are left anyway. One additional change by cehoyos (115bfb976270) has been removed as well (when "direct rendering" was dropped from the filter chain). --- Copyright | 2 +- video/mp_image.c | 9 +++------ video/mp_image.h | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Copyright b/Copyright index 7d6a9adec4..578161a8b0 100644 --- a/Copyright +++ b/Copyright @@ -299,7 +299,7 @@ LGPL relicensing status: video/image_writer.* unknown video/img_format.* hard video/img_fourcc.h hard - video/mp_image.* hard (if even possible) + video/mp_image.* almost LGPL video/mp_image_pool.* LGPL video/out/aspect.* hard video/out/bitmap_packer.* LGPL diff --git a/video/mp_image.c b/video/mp_image.c index 76a117d85a..bc706b8856 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -13,13 +13,10 @@ * * You should have received a copy of the GNU General Public License along * with mpv. If not, see . + * + * Almost LGPL. */ -#include "config.h" - -#include -#include -#include #include #include #include @@ -33,7 +30,7 @@ #include "mpv_talloc.h" -#include "img_format.h" +#include "common/common.h" #include "mp_image.h" #include "sws_utils.h" #include "fmt-conversion.h" diff --git a/video/mp_image.h b/video/mp_image.h index e3ffd55adc..56ce2257f4 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -13,6 +13,8 @@ * * You should have received a copy of the GNU General Public License along * with mpv. If not, see . + * + * Almost LGPL. */ #ifndef MPLAYER_MP_IMAGE_H