[SCM] libav/experimental: ignore year=0 and track=0

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:34:43 UTC 2013


The following commit has been merged in the experimental branch:
commit 7cfe7d77a4835139919c8f77565a601023011a50
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Tue Jan 6 12:56:21 2009 +0000

    ignore year=0 and track=0
    
    Originally committed as revision 16452 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/metadata.c b/libavformat/metadata.c
index 8a25782..5c7ef06 100644
--- a/libavformat/metadata.c
+++ b/libavformat/metadata.c
@@ -84,7 +84,7 @@ int av_metadata_set(AVMetadata **pm, AVMetadataTag elem)
 #define FILL_METADATA_INT(s, key) {                                           \
     char number[10];                                                          \
     snprintf(number, sizeof(number), "%d", s->key);                           \
-    FILL_METADATA(s, key, number) }
+    if(s->key)  FILL_METADATA(s, key, number) }
 
 void ff_metadata_sync_compat(AVFormatContext *ctx)
 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list