[FFmpeg-cvslog] r17394 - trunk/libavformat/ape.c

aurel subversion
Tue Feb 17 16:44:11 CET 2009


Author: aurel
Date: Tue Feb 17 16:44:11 2009
New Revision: 17394

Log:
apedec: display a warning when truncating a metadata tag

Modified:
   trunk/libavformat/ape.c

Modified: trunk/libavformat/ape.c
==============================================================================
--- trunk/libavformat/ape.c	Tue Feb 17 14:41:27 2009	(r17393)
+++ trunk/libavformat/ape.c	Tue Feb 17 16:44:11 2009	(r17394)
@@ -111,6 +111,8 @@ static void ape_tag_read_field(AVFormatC
     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);
 }
 




More information about the ffmpeg-cvslog mailing list