[vlc-commits] [Git][videolan/vlc][master] spudec: fix crash when no region was found for the SPU
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Nov 14 13:30:52 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
523ae65d by Steve Lhomme at 2025-11-14T13:13:51+00: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
=====================================
@@ -107,6 +107,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_region_t *p_region )
{
+ if (p_region == NULL)
+ return;
+
plane_t *p_plane = &p_region->p_picture->p[0];
video_palette_t *p_palette = p_region->p_picture->format.p_palette;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/523ae65d3c6831acc92c56122a921511c44b0864
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/523ae65d3c6831acc92c56122a921511c44b0864
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