mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
oggdemux: Check encoder name is valid
Encoder names should be valid utf-8, if not just ignore them
This commit is contained in:
parent
aa10e82257
commit
a28880b458
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue