mirror of https://github.com/mpv-player/mpv
vd, vd_lavc: change license to LGPL (almost)
iive agreed only to LGPL 3.0+ only. All of his relevant changes are for
XvMC, for which mpv completely dropped support back in mplayer2 times.
But you could claim that the get_format code represents some residual
copyright (everything else added by iive was removed, only get_format
still is around in some form). While I doubt that this is relly
copyright-relevant, consider it is for now.
michael is the original author of vd_lavc.c, so this file can become
LGPL only after the core becomes LGPL.
cehoyos did not agree with the LGPL relicensing, but all of his code is
gone.
Some others could not be reached, but their code is gone as well. In
particular, vdpau support, which was originally done by Nvidia, had
larger impact on vd_lavc.c, but vdpau support was first refactored a few
times (for the purpose of modularization) and moved to different files,
and then decoding was completely moved to libavcodec.
Lastly, assigning the "opaque" field was moved by Gwenole Beauchesne in
commit 8e5edec13e
. Agreement is pending (due to copyright apparently
owned by the author's employer). So just undo the change, so we don't
have to think about whether the change is copyrightable.
This commit is contained in:
parent
b8193e4071
commit
a3f0bf916d
|
@ -264,9 +264,9 @@ LGPL relicensing status:
|
|||
video/decode/hw_d3d11va.c LGPL
|
||||
video/decode/hw_dxva2.c LGPL
|
||||
video/decode/hw_videotoolbox.c LGPL
|
||||
video/decode/lavc.h hard
|
||||
video/decode/vd.h hard
|
||||
video/decode/vd_lavc.c very hard
|
||||
video/decode/lavc.h almost LGPLv3+
|
||||
video/decode/vd.h LGPL
|
||||
video/decode/vd_lavc.c almost LGPLv3+
|
||||
video/filter/refqueue.* LGPL
|
||||
video/filter/vf.c LGPL
|
||||
video/filter/vf.h LGPL (mostly)
|
||||
|
|
|
@ -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_VD_H
|
||||
|
|
|
@ -13,6 +13,16 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with mpv. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Almost LGPLv3+.
|
||||
*
|
||||
* The parts potentially making this file LGPL v3 (instead of v2.1 or later) are:
|
||||
* 376e3abf5c7d2 xvmc use get_format for IDCT/MC recognition
|
||||
* c73f0e18bd1d6 Return PIX_FMT_NONE if the video system refuses all other formats.
|
||||
* (iive agreed to LGPL v3+ only. Jeremy agreed to LGPL v2.1 or later.)
|
||||
* Once these changes are not relevant to for copyright anymore (e.g. because
|
||||
* they have been removed), and the core is LGPL, this file will change to
|
||||
* LGPLv2.1+.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -573,7 +583,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
|||
AVCodecContext *avctx = ctx->avctx;
|
||||
if (!ctx->avctx)
|
||||
goto error;
|
||||
avctx->opaque = vd;
|
||||
avctx->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
avctx->codec_id = lavc_codec->id;
|
||||
|
||||
|
@ -586,6 +595,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
|||
goto error;
|
||||
|
||||
if (ctx->hwdec) {
|
||||
avctx->opaque = vd;
|
||||
avctx->thread_count = 1;
|
||||
#if HAVE_VDPAU_HWACCEL
|
||||
avctx->hwaccel_flags |= AV_HWACCEL_FLAG_IGNORE_LEVEL;
|
||||
|
|
Loading…
Reference in New Issue