mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avcodec/ass_split: check ASSSplitContext alloc
This commit is contained in:
parent
c3517c377e
commit
324cf0645d
@ -356,6 +356,8 @@ static int ass_split(ASSSplitContext *ctx, const char *buf)
|
||||
ASSSplitContext *ff_ass_split(const char *buf)
|
||||
{
|
||||
ASSSplitContext *ctx = av_mallocz(sizeof(*ctx));
|
||||
if (!ctx)
|
||||
return NULL;
|
||||
ctx->current_section = -1;
|
||||
if (ass_split(ctx, buf) < 0) {
|
||||
ff_ass_split_free(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user