[vlc-commits] [Git][videolan/vlc][3.0.x] spudec: fix crash when no region was found for the SPU
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Nov 13 18:02:59 UTC 2025
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
3beff849 by Steve Lhomme at 2025-11-13T18:28:37+01:00
spudec: fix crash when no region was found for the SPU
Fixes #29445
- - - - -
1 changed file:
- modules/codec/spudec/parse.c
Changes:
=====================================
modules/codec/spudec/parse.c
=====================================
@@ -109,6 +109,9 @@ static void CLUTIdxToYUV(const struct subs_format_t *subs,
static void ParsePXCTLI( decoder_t *p_dec, const subpicture_data_t *p_spu_data,
subpicture_t *p_spu )
{
+ if (p_spu->p_region == NULL)
+ return;
+
plane_t *p_plane = &p_spu->p_region->p_picture->p[0];
video_palette_t *p_palette = p_spu->p_region->fmt.p_palette;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3beff849612c11218b4e63b1d13cde88aed5e5d0
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3beff849612c11218b4e63b1d13cde88aed5e5d0
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