mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/concatf: check if any nodes were allocated
Fixes ticket #10304
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 19c2dc677f
)
This commit is contained in:
parent
a6dc92968a
commit
bf704a0b30
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue