1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

apedec: display a warning when truncating a metadata tag

Originally committed as revision 17394 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2009-02-17 15:44:11 +00:00
parent ce09f9270a
commit 41d7f7bdb9

View File

@ -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);
}