[vlc-commits] commit: Fixed potential use of undefined values (yuvp.c) (Laurent Aimar )

git at videolan.org git at videolan.org
Wed Nov 3 20:22:17 CET 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Nov  1 16:41:11 2010 +0100| [2720ae3faf88ccfd3d8747c1b13f923304ad36d9] | committer: Rémi Duraffort 

Fixed potential use of undefined values (yuvp.c)
(cherry picked from commit ba9be5bd694ef1fdd2869e1ac9f88f8762986cc6)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=2720ae3faf88ccfd3d8747c1b13f923304ad36d9
---

 modules/video_filter/yuvp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/yuvp.c b/modules/video_filter/yuvp.c
index 9c5c2e1..ff54c7c 100644
--- a/modules/video_filter/yuvp.c
+++ b/modules/video_filter/yuvp.c
@@ -162,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];



More information about the vlc-commits mailing list