[vlc-commits] [Git][videolan/vlc][master] swscale: don't pretend to handle opaque chromas

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Aug 28 12:26:20 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
907be65a by Steve Lhomme at 2023-08-28T11:55:25+00:00
swscale: don't pretend to handle opaque chromas

- - - - -


1 changed file:

- modules/video_chroma/swscale.c


Changes:

=====================================
modules/video_chroma/swscale.c
=====================================
@@ -415,6 +415,9 @@ static int Init( filter_t *p_filter )
     if( p_sys->desc_in == NULL || p_sys->desc_out == NULL )
         return VLC_EGENERIC;
 
+    if( p_sys->desc_in->plane_count == 0 || p_sys->desc_out->plane_count == 0 )
+        return VLC_EGENERIC;
+
     /* swscale does not like too small width */
     p_sys->i_extend_factor = 1;
     while( __MIN( p_fmti->i_visible_width, p_fmto->i_visible_width ) * p_sys->i_extend_factor < MINIMUM_WIDTH)



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/907be65ac239d173018445ca3612ae3188d5824c
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