diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-08 12:57:08 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-08 12:57:08 +0000 |
commit | c6efa4b5b0395d00c61d57bffe73a5a4d7ff848e (patch) | |
tree | ae486291e2aa31071471db143558735830837446 /libavformat/utils.c | |
parent | fed7d067962b4d7a1759b83b1417e3a930aee139 (diff) | |
download | ffmpeg-c6efa4b5b0395d00c61d57bffe73a5a4d7ff848e.tar.gz |
humm, actually do what's in the doxy
Originally committed as revision 7427 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 7 |
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) |