diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-06 12:56:21 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-06 12:56:21 +0000 |
commit | 7cfe7d77a4835139919c8f77565a601023011a50 (patch) | |
tree | c7d28b631cccf1ce1afb93aee30f67e06426dbf7 | |
parent | aa9a9b7af75cf8caf67ed116e3e4d4b5f2e4831d (diff) | |
download | ffmpeg-7cfe7d77a4835139919c8f77565a601023011a50.tar.gz |
ignore year=0 and track=0
Originally committed as revision 16452 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/metadata.c b/libavformat/metadata.c index 8a25782f29..5c7ef06199 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) { |