avformat/smoothstreaming: Forward errors from copying white/blacklists

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/342/head
Andreas Rheinhardt 5 years ago
parent 9fe30bd9a9
commit 6c777a6688
  1. 4
      libavformat/smoothstreamingenc.c

@ -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;

Loading…
Cancel
Save