[vlc-commits] Ensure that picture_Setup() use at least a mod 32 height for pictures.

Laurent Aimar git at videolan.org
Mon Dec 12 20:25:24 CET 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Dec 12 20:24:32 2011 +0100| [bc3b85c6bd6dc0094562561b084dcea3f0364743] | committer: Laurent Aimar

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc3b85c6bd6dc0094562561b084dcea3f0364743
---

 src/misc/picture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/misc/picture.c b/src/misc/picture.c
index bf65fc5..cb106a7 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -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;



More information about the vlc-commits mailing list