Commit ba9be5bd authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential use of undefined values (yuvp.c)

parent 49062f18
...@@ -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