X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fyuvp.c;h=fbd16fc5ed900984ceeab06e306922202c350374;hb=f73ef73e576a14deb50c879597a28c5bc00a4179;hp=87125ba6efffd974e42401d98ecc5acde778cf94;hpb=724461bdf250e856eb32f6c0b7c51b065e482982;p=vlc diff --git a/modules/video_filter/yuvp.c b/modules/video_filter/yuvp.c index 87125ba6ef..fbd16fc5ed 100644 --- a/modules/video_filter/yuvp.c +++ b/modules/video_filter/yuvp.c @@ -1,24 +1,24 @@ /***************************************************************************** * yuvp.c: YUVP to YUVA/RGBA chroma converter ***************************************************************************** - * Copyright (C) 2008 the VideoLAN team + * Copyright (C) 2008 VLC authors and VideoLAN * $Id$ * * Authors: Laurent Aimar < fenrir @ videolan.org > * - * This program 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 + * This program 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. * * This program 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. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** @@ -30,8 +30,7 @@ #include #include -#include -#include "vlc_filter.h" +#include #include /* TODO: @@ -163,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) { const int v = p_line[x]; - if( v > rgbp.i_entries ) /* maybe assert ? */ + if( v >= rgbp.i_entries ) /* maybe assert ? */ continue; p_rgba[4*x+0] = rgbp.palette[v][0];