[vlc-commits] [Git][videolan/vlc][master] mosaic_bridge: check the forced chroma is valid

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 20 06:18:24 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
95082bc4 by Steve Lhomme at 2023-10-20T06:03:19+00:00
mosaic_bridge: check the forced chroma is valid

- - - - -


1 changed file:

- modules/stream_out/mosaic_bridge.c


Changes:

=====================================
modules/stream_out/mosaic_bridge.c
=====================================
@@ -265,6 +265,12 @@ static int Open( vlc_object_t *p_this )
     {
         memcpy( &p_sys->i_chroma, val.psz_string, 4 );
         msg_Dbg( p_stream, "Forcing image chroma to 0x%.8x (%4.4s)", p_sys->i_chroma, (char*)&p_sys->i_chroma );
+        if ( vlc_fourcc_GetChromaDescription( p_sys->i_chroma ) == NULL )
+        {
+            msg_Err( p_stream, "Unknown chroma" );
+            free( p_sys );
+            return VLC_EINVAL;
+        }
     }
     free( val.psz_string );
 



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

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