Mercurial > libavformat.hg
comparison metadata.c @ 4159:6b5c3c5460be libavformat
ignore year=0 and track=0
author | aurel |
---|---|
date | Tue, 06 Jan 2009 12:56:21 +0000 |
parents | ea1e24175669 |
children | 6a7275621c02 |
comparison
equal
deleted
inserted
replaced
4158:ea1e24175669 | 4159:6b5c3c5460be |
---|---|
82 } | 82 } |
83 #define FILL_METADATA_STR(s, key) FILL_METADATA(s, key, s->key) | 83 #define FILL_METADATA_STR(s, key) FILL_METADATA(s, key, s->key) |
84 #define FILL_METADATA_INT(s, key) { \ | 84 #define FILL_METADATA_INT(s, key) { \ |
85 char number[10]; \ | 85 char number[10]; \ |
86 snprintf(number, sizeof(number), "%d", s->key); \ | 86 snprintf(number, sizeof(number), "%d", s->key); \ |
87 FILL_METADATA(s, key, number) } | 87 if(s->key) FILL_METADATA(s, key, number) } |
88 | 88 |
89 void ff_metadata_sync_compat(AVFormatContext *ctx) | 89 void ff_metadata_sync_compat(AVFormatContext *ctx) |
90 { | 90 { |
91 int i; | 91 int i; |
92 | 92 |