diff utils.c @ 4158:ea1e24175669 libavformat

Add a metadata compatibility layer, so that when a user application set metadata using old API, it is automatically converted to new API before muxing.
author aurel
date Tue, 06 Jan 2009 00:09:23 +0000
parents bd4d3fee45d0
children 6a7275621c02
line wrap: on
line diff
--- a/utils.c	Mon Jan 05 23:56:27 2009 +0000
+++ b/utils.c	Tue Jan 06 00:09:23 2009 +0000
@@ -2501,6 +2501,10 @@
             return AVERROR(ENOMEM);
     }
 
+#if LIBAVFORMAT_VERSION_MAJOR < 53
+    ff_metadata_sync_compat(s);
+#endif
+
     if(s->oformat->write_header){
         ret = s->oformat->write_header(s);
         if (ret < 0)