[FFmpeg-cvslog] avformat/concatf: check if any nodes were allocated

James Almer git at videolan.org
Fri Apr 14 16:06:13 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Apr 12 22:52:05 2023 -0300| [19c2dc677f81c940aebe63ed09dacf5c725f0b35] | committer: James Almer

avformat/concatf: check if any nodes were allocated

Fixes ticket #10304

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19c2dc677f81c940aebe63ed09dacf5c725f0b35
---

 libavformat/concat.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 



More information about the ffmpeg-cvslog mailing list