oggdemux: Check encoder name is valid

Encoder names should be valid utf-8, if not just ignore them
This commit is contained in:
Edward Hervey 2017-12-08 10:33:10 +01:00 committed by Edward Hervey
parent aa10e82257
commit a28880b458

View file

@ -392,7 +392,7 @@ tag_list_from_vorbiscomment_packet (ogg_packet * packet,
}
if (encoder) {
if (encoder[0])
if (encoder[0] && g_utf8_validate (encoder, -1, NULL))
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, GST_TAG_ENCODER, encoder,
NULL);
g_free (encoder);