mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/smoothstreaming: Forward errors from copying white/blacklists
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
9fe30bd9a9
commit
6c777a6688
|
@ -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…
Reference in New Issue