avformat/smoothstreaming: Forward errors from copying white/blacklists

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2019-12-20 18:50:21 +01:00
parent 9fe30bd9a9
commit 6c777a6688
1 changed files with 3 additions and 1 deletions

View File

@ -327,10 +327,12 @@ static int ism_write_header(AVFormatContext *s)
}
os->ctx = ctx = avformat_alloc_context();
if (!ctx || ff_copy_whiteblacklists(ctx, s) < 0) {
if (!ctx) {
ret = AVERROR(ENOMEM);
goto fail;
}
if ((ret = ff_copy_whiteblacklists(ctx, s)) < 0)
goto fail;
ctx->oformat = oformat;
ctx->interrupt_callback = s->interrupt_callback;