[Ffmpeg-cvslog] r7427 - trunk/libavformat/utils.c

bcoudurier subversion
Mon Jan 8 13:57:09 CET 2007


Author: bcoudurier
Date: Mon Jan  8 13:57:08 2007
New Revision: 7427

Modified:
   trunk/libavformat/utils.c

Log:
humm, actually do what's in the doxy

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Jan  8 13:57:08 2007
@@ -2184,6 +2184,13 @@
         }
     }
 
+    if (s->oformat->priv_data_size > 0) {
+        s->priv_data = av_mallocz(s->oformat->priv_data_size);
+        if (!s->priv_data)
+            return AVERROR_NOMEM;
+    } else
+        s->priv_data = NULL;
+
     if(s->oformat->write_header){
         ret = s->oformat->write_header(s);
         if (ret < 0)




More information about the ffmpeg-cvslog mailing list