mpegdemux: Don't write after the end of the psm array when initialising it

This commit is contained in:
Sebastian Dröge 2014-02-27 22:28:16 +01:00
parent 8284f7bc61
commit 03043b7238

View file

@ -1530,7 +1530,7 @@ gst_flups_demux_reset_psm (GstFluPSDemux * demux)
demux->psm[i] = type;
/* Initialize all fields to -1 first */
FILL_TYPE (0x00, GST_FLUPS_DEMUX_MAX_PSM, -1);
FILL_TYPE (0x00, GST_FLUPS_DEMUX_MAX_PSM - 1, -1);
FILL_TYPE (0x20, 0x3f, ST_PS_DVD_SUBPICTURE);