summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-08 12:57:08 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-08 12:57:08 +0000
commitc6efa4b5b0395d00c61d57bffe73a5a4d7ff848e (patch)
treeae486291e2aa31071471db143558735830837446
parentfed7d067962b4d7a1759b83b1417e3a930aee139 (diff)
humm, actually do what's in the doxy
Originally committed as revision 7427 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 6efe885cf5..a4c8b6f77f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2184,6 +2184,13 @@ int av_write_header(AVFormatContext *s)
}
}
+ 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)