Mercurial > libavformat.hg
changeset 3161:60be75aa8c47 libavformat
cannot free AVStream like this, and return ENOMEM
author | bcoudurier |
---|---|
date | Fri, 21 Mar 2008 10:47:14 +0000 |
parents | 1306bdb603c3 |
children | 5e03e5577f79 |
files | mov.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Fri Mar 21 10:39:49 2008 +0000 +++ b/mov.c Fri Mar 21 10:47:14 2008 +0000 @@ -1204,10 +1204,7 @@ st = av_new_stream(c->fc, c->fc->nb_streams); if (!st) return -2; sc = av_mallocz(sizeof(MOVStreamContext)); - if (!sc) { - av_free(st); - return -1; - } + if (!sc) return AVERROR(ENOMEM); st->priv_data = sc; st->codec->codec_type = CODEC_TYPE_DATA;