mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/concat: priv_data should be freed internally
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
52bd9342dc
commit
6da653e525
@ -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…
x
Reference in New Issue
Block a user