[vlc-commits] [Git][videolan/vlc][master] picture: align picture width to 64

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Oct 11 05:26:43 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fa75a43b by Steve Lhomme at 2022-10-11T05:11:07+00:00
picture: align picture width to 64

It seems the latest FFmpeg requires 64 bits alignment for some I420 output.

Fixes #27285

- - - - -


1 changed file:

- src/misc/picture.c


Changes:

=====================================
src/misc/picture.c
=====================================
@@ -152,7 +152,7 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
 
     for( unsigned i = 0; i < p_dsc->plane_count; i++ )
     {
-        i_modulo_w = LCM( i_modulo_w, 16 * p_dsc->p[i].w.den );
+        i_modulo_w = LCM( i_modulo_w, 64 * p_dsc->p[i].w.den );
         i_modulo_h = LCM( i_modulo_h, 16 * p_dsc->p[i].h.den );
         if( i_ratio_h < p_dsc->p[i].h.den )
             i_ratio_h = p_dsc->p[i].h.den;
@@ -190,7 +190,7 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
                              * p_dsc->pixel_size;
         p->i_pixel_pitch = p_dsc->pixel_size;
 
-        assert( (p->i_pitch % 16) == 0 );
+        assert( (p->i_pitch % 64) == 0 );
     }
     p_picture->i_planes = p_dsc->plane_count;
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fa75a43b0bb9b2997fda7006b6a83d697ecd6c89

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fa75a43b0bb9b2997fda7006b6a83d697ecd6c89
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list