Commit f93e6986 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Ensure that picture_Setup() use at least a mod 32 height for pictures.

(cherry picked from commit bc3b85c6bd6dc0094562561b084dcea3f0364743)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a101344f
......@@ -167,6 +167,7 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma,
if( i_ratio_h < p_dsc->p[i].h.den )
i_ratio_h = p_dsc->p[i].h.den;
}
i_modulo_h = LCM( i_modulo_h, 32 );
const int i_width_aligned = ( i_width + i_modulo_w - 1 ) / i_modulo_w * i_modulo_w;
const int i_height_aligned = ( i_height + i_modulo_h - 1 ) / i_modulo_h * i_modulo_h;
......
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