summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRené Stadler <rene.stadler@nokia.com>2009-05-16 13:52:50 +0300
committerRené Stadler <mail@renestadler.de>2009-10-08 23:31:07 +0300
commitc40cb187627e84db6adb1dcc349f31b5af0f11a9 (patch)
tree24379ebaa4fc7cc1f1d9552c89afff0aa0fc3330
parent0f5711d1dcb05f10d17a298549d8c4aae081ab91 (diff)
matroskademux: fix strstr() usage on possibly unterminated string
-rw-r--r--gst/matroska/matroska-demux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 9c2dd7ba..41e7539f 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -3706,7 +3706,7 @@ gst_matroska_demux_push_dvd_clut_change_event (GstMatroskaDemux * demux,
buf = g_strndup ((gchar *) stream->codec_priv, stream->codec_priv_size);
/* just locate and parse palette part */
- start = strstr ((gchar *) stream->codec_priv, "palette:");
+ start = strstr (buf, "palette:");
if (start) {
gint i;
guint32 clut[16];