From 03043b72382732704739919e2f71fd8ee2ad2a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 27 Feb 2014 22:28:16 +0100 Subject: [PATCH] mpegdemux: Don't write after the end of the psm array when initialising it --- gst/mpegdemux/gstmpegdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index 86b4af0e2c..78a2623390 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -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);