]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/yuvp.c
avcodec: unused variable
[vlc] / modules / video_filter / yuvp.c
index 87125ba6efffd974e42401d98ecc5acde778cf94..fbd16fc5ed900984ceeab06e306922202c350374 100644 (file)
@@ -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 <vlc_common.h>
 #include <vlc_plugin.h>
-#include <vlc_vout.h>
-#include "vlc_filter.h"
+#include <vlc_filter.h>
 #include <assert.h>
 
 /* 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];