avformat/concat: priv_data should be freed internally
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
@@ -75,7 +75,6 @@ static av_cold int concat_open(URLContext *h, const char *uri, int flags)
|
|||||||
if (uri[i] == *AV_CAT_SEPARATOR) {
|
if (uri[i] == *AV_CAT_SEPARATOR) {
|
||||||
/* integer overflow */
|
/* integer overflow */
|
||||||
if (++len == UINT_MAX / sizeof(*nodes)) {
|
if (++len == UINT_MAX / sizeof(*nodes)) {
|
||||||
av_freep(&h->priv_data);
|
|
||||||
return AVERROR(ENAMETOOLONG);
|
return AVERROR(ENAMETOOLONG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user