projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa10e82
)
oggdemux: Check encoder name is valid
author
Edward Hervey
<edward@centricular.com>
Fri, 8 Dec 2017 09:33:10 +0000
(10:33 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Fri, 8 Dec 2017 09:38:20 +0000
(10:38 +0100)
Encoder names should be valid utf-8, if not just ignore them
ext/ogg/gstoggstream.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggstream.c
b/ext/ogg/gstoggstream.c
index
5213553
..
91f65ee
100644
(file)
--- a/
ext/ogg/gstoggstream.c
+++ b/
ext/ogg/gstoggstream.c
@@
-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);