Mercurial > libavformat.hg
diff utils.c @ 1624:66f000bb4558 libavformat
humm, actually do what's in the doxy
author | bcoudurier |
---|---|
date | Mon, 08 Jan 2007 12:57:08 +0000 |
parents | ad71e733bc20 |
children | f1ccbe0ad364 |
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)