diff options
author | James Almer <jamrial@gmail.com> | 2023-04-12 22:52:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-04-16 11:39:13 -0300 |
commit | 796daf929a1effcb0373fb629c07cecc9069976c (patch) | |
tree | 32f8d3badf25f8b7b18d228a30597b5e5d05aba2 | |
parent | 00282752165a8d1e252c4a07b262d9384f618759 (diff) | |
download | ffmpeg-796daf929a1effcb0373fb629c07cecc9069976c.tar.gz |
avformat/concatf: check if any nodes were allocated
Fixes ticket #10304
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 19c2dc677f81c940aebe63ed09dacf5c725f0b35)
-rw-r--r-- | libavformat/concat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/concat.c b/libavformat/concat.c index dc0985e40c..825e43a7fa 100644 --- a/libavformat/concat.c +++ b/libavformat/concat.c @@ -296,6 +296,8 @@ static av_cold int concatf_open(URLContext *h, const char *uri, int flags) av_bprint_finalize(&bp, NULL); data->length = i; + if (!data->length) + err = AVERROR_INVALIDDATA; if (err < 0) concat_close(h); |