Commit 2720ae3f authored by Laurent Aimar's avatar Laurent Aimar Committed by Rémi Duraffort

Fixed potential use of undefined values (yuvp.c)

(cherry picked from commit ba9be5bd694ef1fdd2869e1ac9f88f8762986cc6)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent bffe7a90
...@@ -162,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -162,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{ {
const int v = p_line[x]; const int v = p_line[x];
if( v > rgbp.i_entries ) /* maybe assert ? */ if( v >= rgbp.i_entries ) /* maybe assert ? */
continue; continue;
p_rgba[4*x+0] = rgbp.palette[v][0]; p_rgba[4*x+0] = rgbp.palette[v][0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment