Mercurial > libavformat.hg
changeset 1624:66f000bb4558 libavformat
humm, actually do what's in the doxy
author | bcoudurier |
---|---|
date | Mon, 08 Jan 2007 12:57:08 +0000 |
parents | bdb50e314f29 |
children | f1ccbe0ad364 |
files | utils.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Jan 08 12:33:16 2007 +0000 +++ b/utils.c Mon Jan 08 12:57:08 2007 +0000 @@ -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)