summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-18 15:12:11 +0200
committerwm4 <wm4@nowhere>2017-06-18 15:15:07 +0200
commit5ea851feae07e33dfd47b302a891f03b85393609 (patch)
treebedad0040d85d182a1c1dfb1610085c7761767cd /video/fmt-conversion.h
parent456c2ad222d7663cd8889b5509083ab07c2314b0 (diff)
downloadmpv-5ea851feae07e33dfd47b302a891f03b85393609.tar.bz2
mpv-5ea851feae07e33dfd47b302a891f03b85393609.tar.xz
video/fmt-conversion, img_format: change license to LGPL
The problem with fmt-conversion.h is that "lucabe", who disagreed with LGPL, originally wrote it. But it was actually rewritten by "reimar" later. The original switch statement was replaced with a lookup table. No code other than the imgfmt2pixfmt() function signature survives. Neither the format pairs (PIXFMT<->IMGFMT), nor the concept of mapping them, can be copyrighted. So changing the license should be fine, because reimar and all other authors involved with the new code agreed to LGPL. We also don't consider format pairs added later as copyrightable. (The direct-mapping idea mentioned in the "Copyright" file seems attractive, and I might implement in later anyway.) Likewise, there might be some format names added to img_format.h, which are not covered by relicensing agreements. These all affect "later" additions, and they follow either the FFmpeg PIXFMT naming or some other pre-existing logic, so this should be fine.
Diffstat (limited to 'video/fmt-conversion.h')
-rw-r--r--video/fmt-conversion.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/video/fmt-conversion.h b/video/fmt-conversion.h
index 03515ec76b..962e4b89d8 100644
--- a/video/fmt-conversion.h
+++ b/video/fmt-conversion.h
@@ -1,18 +1,18 @@
/*
* This file is part of mpv.
*
- * mpv is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * mpv is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
* mpv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
- * with mpv. If not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MPLAYER_FMT_CONVERSION_H