[SCM] libav/experimental: apedec: display a warning when truncating a metadata tag

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:38:37 UTC 2013


The following commit has been merged in the experimental branch:
commit 41d7f7bdb9ba95a990f0fbfa47e808a48cfd748d
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Tue Feb 17 15:44:11 2009 +0000

    apedec: display a warning when truncating a metadata tag
    
    Originally committed as revision 17394 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/ape.c b/libavformat/ape.c
index 6a57d9c..fac9678 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);
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list