Commit 6da653e5 authored by Limin Wang's avatar Limin Wang

avformat/concat: priv_data should be freed internally

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 52bd9342
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment