mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avformat/concatf: check if any nodes were allocated
Fixes ticket #10304 Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 19c2dc677f81c940aebe63ed09dacf5c725f0b35)
This commit is contained in:
parent
0028275216
commit
796daf929a
@ -296,6 +296,8 @@ static av_cold int concatf_open(URLContext *h, const char *uri, int flags)
|
|||||||
av_bprint_finalize(&bp, NULL);
|
av_bprint_finalize(&bp, NULL);
|
||||||
data->length = i;
|
data->length = i;
|
||||||
|
|
||||||
|
if (!data->length)
|
||||||
|
err = AVERROR_INVALIDDATA;
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
concat_close(h);
|
concat_close(h);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user