aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-02-17 15:44:11 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-02-17 15:44:11 +0000
commit41d7f7bdb9ba95a990f0fbfa47e808a48cfd748d (patch)
treef59cb445308b4500583d2efc4d17505b1d979407
parentce09f9270a8bf43212dad58fcb73fee2900c364f (diff)
downloadffmpeg-41d7f7bdb9ba95a990f0fbfa47e808a48cfd748d.tar.gz
apedec: display a warning when truncating a metadata tag
Originally committed as revision 17394 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/ape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/ape.c b/libavformat/ape.c
index 6a57d9caf1..fac967879a 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -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);
}