[vlc-devel] [PATCH 10/10] demux:mp4: make sure we don't touch spu data on non SPU tracks

Francois Cartegnie fcvlcdev at free.fr
Fri Jul 7 13:48:09 CEST 2017


Le 07/07/2017 à 12:56, Steve Lhomme a écrit :

> +++ b/modules/demux/mp4/essetup.c
> @@ -1249,6 +1249,7 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
>                      p_style->i_features |= (STYLE_HAS_BACKGROUND_ALPHA | STYLE_HAS_BACKGROUND_COLOR);
>                  }
>              }
> +            assert(p_track->fmt.i_cat == SPU_ES);
>              p_track->fmt.subs.p_style = p_style;

assert is not release proof.

Francois


More information about the vlc-devel mailing list