[vlc-commits] commit: Fixed potential use of undefined values (yuvp.c) (Laurent Aimar )
git at videolan.org
git at videolan.org
Mon Nov 1 16:41:48 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Nov 1 16:41:11 2010 +0100| [ba9be5bd694ef1fdd2869e1ac9f88f8762986cc6] | committer: Laurent Aimar
Fixed potential use of undefined values (yuvp.c)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba9be5bd694ef1fdd2869e1ac9f88f8762986cc6
---
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