Commit 67aa838e authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

vout_new_buffer: fix signed / unsigned comparison

(cherry picked from commit 780203a1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c0404385
...@@ -2348,7 +2348,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) ...@@ -2348,7 +2348,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
if( vlc_fourcc_IsYUV( fmt.i_chroma ) ) if( vlc_fourcc_IsYUV( fmt.i_chroma ) )
{ {
const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma ); const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma );
for( int i = 0; dsc && i < dsc->plane_count; i++ ) for( unsigned int i = 0; dsc && i < dsc->plane_count; i++ )
{ {
while( fmt.i_width % dsc->p[i].w.den ) while( fmt.i_width % dsc->p[i].w.den )
fmt.i_width++; fmt.i_width++;
......
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