avformat/concat: priv_data should be freed internally

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/336/head
Limin Wang 5 years ago
parent 52bd9342dc
commit 6da653e525
  1. 1
      libavformat/concat.c

@ -75,7 +75,6 @@ static av_cold int concat_open(URLContext *h, const char *uri, int flags)
if (uri[i] == *AV_CAT_SEPARATOR) {
/* integer overflow */
if (++len == UINT_MAX / sizeof(*nodes)) {
av_freep(&h->priv_data);
return AVERROR(ENAMETOOLONG);
}
}

Loading…
Cancel
Save