Commit 19c2dc67 authored by James Almer's avatar James Almer

avformat/concatf: check if any nodes were allocated

Fixes ticket #10304
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent c8e19554
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment