# HG changeset patch # User bcoudurier # Date 1206096434 0 # Node ID 60be75aa8c47fa8105ff0ce6fcdfdd4e531c0ea1 # Parent 1306bdb603c3a7bdb820e66b75062dbeef46ffdd cannot free AVStream like this, and return ENOMEM diff -r 1306bdb603c3 -r 60be75aa8c47 mov.c --- 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;