Commit 41d7f7bd authored by Aurelien Jacobs's avatar Aurelien Jacobs

apedec: display a warning when truncating a metadata tag

Originally committed as revision 17394 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ce09f927
......@@ -111,6 +111,8 @@ static void ape_tag_read_field(AVFormatContext *s)
get_buffer(pb, value, l);
value[l] = 0;
url_fskip(pb, size-l);
if (l < size)
av_log(s, AV_LOG_WARNING, "Too long '%s' tag was truncated.\n", key);
av_metadata_set(&s->metadata, key, value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment