diff metadata_compat.c @ 4583:8d5d5bcf76c9 libavformat

don't trigger metadata compatibility code when user app already set metadata using new API
author aurel
date Thu, 26 Feb 2009 13:00:13 +0000
parents e4a1b568b313
children 27fd77f20a89
line wrap: on
line diff
--- a/metadata_compat.c	Thu Feb 26 08:45:59 2009 +0000
+++ b/metadata_compat.c	Thu Feb 26 13:00:13 2009 +0000
@@ -118,6 +118,9 @@
 {
     int i;
 
+    if (ctx->metadata && ctx->metadata->count > 0)
+        return;
+
     FILL_METADATA_STR(ctx, title);
     FILL_METADATA_STR(ctx, author);
     FILL_METADATA_STR(ctx, copyright);