changeset 4159:6b5c3c5460be libavformat

ignore year=0 and track=0
author aurel
date Tue, 06 Jan 2009 12:56:21 +0000
parents ea1e24175669
children e7c4a867349a
files metadata.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/metadata.c	Tue Jan 06 00:09:23 2009 +0000
+++ b/metadata.c	Tue Jan 06 12:56:21 2009 +0000
@@ -84,7 +84,7 @@
 #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)
 {