diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-03-23 09:48:19 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-03-24 15:34:02 -0300 |
commit | e207463582cc227b73922e8d6a70a721b75baf45 (patch) | |
tree | 4557a3681655f09b95a8e1f1f5fce9303db91c9e | |
parent | 7ebbfbd3a5571c0e7518c5de9e710b9b9915f91e (diff) |
tag: xmp: Fix off by one
Avoid ignoring single char tags, like exif:GPSAltitudeRef
Fixes #613690
-rw-r--r-- | gst-libs/gst/tag/gstxmptag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index 5ede2877f..064480d64 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -618,7 +618,7 @@ gst_tag_list_from_xmp_buffer (const GstBuffer * buffer) *pp = '\0'; /* create node */ /* {TXT, ns, (ne-ns)-1} */ - if (ns[0] != '\n' && &ns[1] < ne) { + if (ns[0] != '\n' && &ns[1] <= ne) { /* only log non-newline nodes, we still have to parse them */ GST_INFO ("txt: %s", part); if (last_tag) { |