From 42c061b0e739cd4956862dc4a876cf55cebd72ac Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 26 May 2014 11:54:50 +0200 Subject: [PATCH] mpegts: Fix Bouquet Name parsing the field is not length prefixed --- gst-libs/gst/mpegts/gst-dvb-descriptor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/mpegts/gst-dvb-descriptor.c b/gst-libs/gst/mpegts/gst-dvb-descriptor.c index 8d4c81ac6e..47c64e9168 100644 --- a/gst-libs/gst/mpegts/gst-dvb-descriptor.c +++ b/gst-libs/gst/mpegts/gst-dvb-descriptor.c @@ -409,7 +409,8 @@ gst_mpegts_descriptor_parse_dvb_bouquet_name (const GstMpegTsDescriptor * data = (guint8 *) descriptor->data + 2; - *bouquet_name = get_encoding_and_convert ((const gchar *) data + 1, *data); + *bouquet_name = + get_encoding_and_convert ((const gchar *) data, descriptor->length); return TRUE; }