diff utils.c @ 4179:c32a783ff374 libavformat

Add a second metadata compatibility layer, so that metadata that gets demuxed with new API is automatically converted to the old API, allowing old applications to stay functional.
author aurel
date Thu, 08 Jan 2009 23:24:51 +0000
parents fdadd576d584
children 17a8a3696ee1
line wrap: on
line diff
--- a/utils.c	Thu Jan 08 18:00:51 2009 +0000
+++ b/utils.c	Thu Jan 08 23:24:51 2009 +0000
@@ -485,6 +485,10 @@
     if (pb && !ic->data_offset)
         ic->data_offset = url_ftell(ic->pb);
 
+#if LIBAVFORMAT_VERSION_MAJOR < 53
+    ff_metadata_demux_compat(ic);
+#endif
+
     *ic_ptr = ic;
     return 0;
  fail: